3v4l.org

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