Download src/php/php-src/Zend/tests/arrow_functions/004.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 200 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arrow_functions/004.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/arrow_functions/004.phpt
-
curl -L -o 004.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arrow_functions/004.phpt
200 Bytes
| --TEST-- | |
| Auto-globals in arrow functions | |
| --FILE-- | |
| // This should work, but *not* generate a binding for $GLOBALS | |
| $a = 123; | |
| $fn = fn() => $GLOBALS['a']; | |
| var_dump($fn()); | |
| --EXPECT-- | |
| int(123) | |