Download src/php/php-src/tests/lang/018.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/018.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/018.phpt
-
curl -L -o 018.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/018.phpt
225 Bytes
| --TEST-- | |
| eval() test | |
| --FILE-- | |
| error_reporting(0); | |
| $message = "echo \"hey\n\";"; | |
| for ($i=0; $i<10; $i++) { | |
| eval($message); | |
| echo $i."\n"; | |
| } | |
| --EXPECT-- | |
| hey | |
| 0 | |
| hey | |
| 1 | |
| hey | |
| 2 | |
| hey | |
| 3 | |
| hey | |
| 4 | |
| hey | |
| 5 | |
| hey | |
| 6 | |
| hey | |
| 7 | |
| hey | |
| 8 | |
| hey | |
| 9 | |