3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test_variadic(...$args) // Note that `$args` is not optional here. { print_r($args); } test(); // Test without any arguments. Woah. This works. Nice!
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function test() in /in/02QE3:6 Stack trace: #0 {main} thrown in /in/02QE3 on line 6
Process exited with code 255.
Output for 5.6.8 - 5.6.21
Fatal error: Call to undefined function test() in /in/02QE3 on line 6
Process exited with code 255.
Output for 5.4.10 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/02QE3 on line 2
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/02QE3 on line 2
Process exited with code 255.