Download src/php/php-src/ext/opcache/tests/jit/array_elem.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/jit/array_elem.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/jit/array_elem.phpt
-
curl -L -o array_elem.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/jit/array_elem.phpt
336 Bytes
| --TEST-- | |
| Refcount inference when adding array elements | |
| --EXTENSIONS-- | |
| opcache | |
| --FILE-- | |
| function test($a) { | |
| $ary = [$a]; | |
| $ary2 = [0, $ary, $ary]; | |
| return $ary2; | |
| } | |
| var_dump(test(1)); | |
| --EXPECT-- | |
| array(3) { | |
| [0]=> | |
| int(0) | |
| [1]=> | |
| array(1) { | |
| [0]=> | |
| int(1) | |
| } | |
| [2]=> | |
| array(1) { | |
| [0]=> | |
| int(1) | |
| } | |
| } | |