3v4l.org

run code in 300+ PHP versions simultaneously
<?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.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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 - 5.6.28, 7.0.0 - 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.

preferences:
184.45 ms | 401 KiB | 228 Q