Download src/php/php-src/Zend/tests/arg_unpack/internal.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arg_unpack/internal.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/arg_unpack/internal.phpt
-
curl -L -o internal.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/arg_unpack/internal.phpt
459 Bytes
| --TEST-- | |
| Argument unpacking with internal functions | |
| --FILE-- | |
| <?php | |
| $arrays = [ | |
| [], | |
| [], | |
| [], | |
| ]; | |
| var_dump(array_map(null, ...$arrays)); | |
| ?> | |
| --EXPECT-- | |
| array(3) { | |
| []=> | |
| array(3) { | |
| []=> | |
| int(1) | |
| []=> | |
| int(4) | |
| []=> | |
| int(7) | |
| } | |
| []=> | |
| array(3) { | |
| []=> | |
| int(2) | |
| []=> | |
| int(5) | |
| []=> | |
| int(8) | |
| } | |
| []=> | |
| array(3) { | |
| []=> | |
| int(3) | |
| []=> | |
| int(6) | |
| []=> | |
| int(9) | |
| } | |
| } | |