Download src/php/php-src/Zend/tests/anon/003.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/003.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/anon/003.phpt
-
curl -L -o 003.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/anon/003.phpt
682 Bytes
| --TEST-- | |
| reusing anonymous classes | |
| --FILE-- | |
| <?php | |
| while (@$i++<10) { | |
| var_dump(new class($i) { | |
| public $i; | |
| public function __construct($i) { | |
| $this->i = $i; | |
| } | |
| }); | |
| } | |
| ?> | |
| --EXPECTF-- | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(1) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(2) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(3) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(4) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(5) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(6) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(7) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(8) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(9) | |
| } | |
| object(class@%s)#1 (1) { | |
| ["i"]=> | |
| int(10) | |
| } | |