Download src/php/php-src/tests/lang/019.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/019.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/019.phpt
-
curl -L -o 019.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/019.phpt
1.13 kB
| --TEST-- | |
| eval() test | |
| --FILE-- | |
| <?php | |
| eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }"); | |
| $i=0; | |
| while ($i<10) { | |
| eval("echo \"hey, this is a regular echo'd eval()\\n\";"); | |
| test(); | |
| $i++; | |
| } | |
| eval('-'); | |
| ?> | |
| --EXPECTF-- | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| hey, this is a regular echo'd eval() | |
| hey, this is a function inside an eval()! | |
| Parse error: syntax error, unexpected %s in %s019.php(12) : eval()'d code on line 1 | |