Download src/php/php-src/tests/lang/017.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/017.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/017.phpt
-
curl -L -o 017.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/017.phpt
227 Bytes
| --TEST-- | |
| Testing user-defined function falling out of an If into another | |
| --FILE-- | |
| $a = 1; | |
| function Test ($a) { | |
| if ($a<3) { | |
| return(3); | |
| } | |
| } | |
| if ($a < Test($a)) { | |
| echo "$a\n"; | |
| $a++; | |
| } | |
| --EXPECT-- | |
| 1 | |