Download src/php/php-src/tests/lang/007.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/007.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/007.phpt
-
curl -L -o 007.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/007.phpt
347 Bytes
| --TEST-- | |
| Function call with global and static variables | |
| --FILE-- | |
| error_reporting(0); | |
| $a = 10; | |
| function Test() | |
| { | |
| static $a=1; | |
| global $b; | |
| $c = 1; | |
| $b = 5; | |
| echo "$a $b "; | |
| $a++; | |
| $c++; | |
| echo "$a $c "; | |
| } | |
| Test(); | |
| echo "$a $b $c "; | |
| Test(); | |
| echo "$a $b $c "; | |
| Test(); | |
| --EXPECT-- | |
| 1 5 2 2 10 5 2 5 3 2 10 5 3 5 4 2 | |