Download src/php/php-src/tests/lang/003.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/003.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/003.phpt
-
curl -L -o 003.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/003.phpt
226 Bytes
| --TEST-- | |
| Simple Switch Test | |
| --FILE-- | |
| $a=1; | |
| switch($a) { | |
| case 0: | |
| echo "bad"; | |
| break; | |
| case 1: | |
| echo "good"; | |
| break; | |
| default: | |
| echo "bad"; | |
| break; | |
| } | |
| --EXPECT-- | |
| good | |