3v4l.org

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

preferences:
123.29 ms | 1208 KiB | 6 Q