Download src/php/php-src/Zend/tests/arrow_functions/002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arrow_functions/002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/arrow_functions/002.phpt
-
curl -L -o 002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arrow_functions/002.phpt
211 Bytes
| --TEST-- | |
| Arrow functions implicit use must be throwing notices only upon actual use | |
| --FILE-- | |
| <?php | |
| $b = 1; | |
| var_dump((fn() => $b + $c)()); | |
| ?> | |
| --EXPECTF-- | |
| Warning: Undefined variable $c in %s on line %d | |
| int(1) | |