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();
based on qpCGs
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function baz(), 0 passed in /in/8mlYK on line 11 and exactly 3 expected in /in/8mlYK:7 Stack trace: #0 /in/8mlYK(11): baz() #1 {main} thrown in /in/8mlYK 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/8mlYK on line 11 and defined in /in/8mlYK on line 7 Warning: Missing argument 2 for baz(), called in /in/8mlYK on line 11 and defined in /in/8mlYK on line 7 Warning: Missing argument 3 for baz(), called in /in/8mlYK on line 11 and defined in /in/8mlYK on line 7 Warning: Missing argument 1 for lol(), called in /in/8mlYK on line 8 and defined in /in/8mlYK on line 3 Warning: Missing argument 2 for lol(), called in /in/8mlYK on line 8 and defined in /in/8mlYK on line 3 Warning: Missing argument 3 for lol(), called in /in/8mlYK on line 8 and defined in /in/8mlYK on line 3 Warning: var_dump() expects at least 1 parameter, 0 given in /in/8mlYK on line 4
Output for 5.5.24 - 5.5.35
Parse error: syntax error, unexpected '.' in /in/8mlYK on line 4
Process exited with code 255.
Output for 5.3.21 - 5.4.45
Parse error: syntax error, unexpected '.', expecting ')' in /in/8mlYK on line 4
Process exited with code 255.