3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(...$args) { var_dump($args); } foo(...[1, 2, 3]); foo(...[1, 2, 3], ...[4]); foo(...[1, 2, 3], 4);
Output for 7.0.0 - 7.0.14, 7.1.0 - 7.1.1
Fatal error: Cannot use positional argument after argument unpacking in /in/09H0a on line 9
Process exited with code 255.

preferences:
149.87 ms | 1399 KiB | 24 Q