3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(...$args) { var_dump($args); } a("a", ...["blah", "foo"], "bar");
Output for 5.6.8 - 5.6.15
Fatal error: Cannot use positional argument after argument unpacking in /in/rkUCq on line 7
Process exited with code 255.
Output for 5.5.24 - 5.5.30
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/rkUCq on line 3
Process exited with code 255.

preferences:
170.42 ms | 1399 KiB | 22 Q