dis-bench / src /php /php-src /Zend /tests /arg_unpack /many_args.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
204 Bytes
--TEST--
Argument unpacking with many arguments
--FILE--
<?php
function f(...$args) {
var_dump(count($args));
}
$array = array_fill(0, 10000, 42);
f(...$array, ...$array);
?>
--EXPECT--
int(20000)