3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function lol($a, $b, $c){ var_dump(...func_get_args()); } function baz($a, $b, $c){ lol(...func_get_args()); } baz();
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function baz(), 0 passed in /in/qpCGs on line 11 and exactly 3 expected in /in/qpCGs:7 Stack trace: #0 /in/qpCGs(11): baz() #1 {main} thrown in /in/qpCGs on line 7
Process exited with code 255.
Output for 5.6.8 - 7.0.20
Warning: Missing argument 1 for baz(), called in /in/qpCGs on line 11 and defined in /in/qpCGs on line 7 Warning: Missing argument 2 for baz(), called in /in/qpCGs on line 11 and defined in /in/qpCGs on line 7 Warning: Missing argument 3 for baz(), called in /in/qpCGs on line 11 and defined in /in/qpCGs on line 7 Warning: Missing argument 1 for lol(), called in /in/qpCGs on line 8 and defined in /in/qpCGs on line 3 Warning: Missing argument 2 for lol(), called in /in/qpCGs on line 8 and defined in /in/qpCGs on line 3 Warning: Missing argument 3 for lol(), called in /in/qpCGs on line 8 and defined in /in/qpCGs on line 3 Warning: var_dump() expects at least 1 parameter, 0 given in /in/qpCGs on line 4
Output for 5.5.24 - 5.5.35
Parse error: syntax error, unexpected '.' in /in/qpCGs on line 4
Process exited with code 255.
Output for 5.3.21 - 5.4.45
Parse error: syntax error, unexpected '.', expecting ')' in /in/qpCGs on line 4
Process exited with code 255.