3v4l.org

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