3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($a, $b, $c) { var_dump(array_map([1, 2], 'func_get_args')); } test();
based on nQ1J4
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 0 passed in /in/rOkLs on line 6 and exactly 3 expected in /in/rOkLs:3 Stack trace: #0 /in/rOkLs(6): test() #1 {main} thrown in /in/rOkLs on line 3
Process exited with code 255.
Output for 5.4.11 - 7.0.20
Warning: Missing argument 1 for test(), called in /in/rOkLs on line 6 and defined in /in/rOkLs on line 3 Warning: Missing argument 2 for test(), called in /in/rOkLs on line 6 and defined in /in/rOkLs on line 3 Warning: Missing argument 3 for test(), called in /in/rOkLs on line 6 and defined in /in/rOkLs on line 3 Warning: array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /in/rOkLs on line 4 NULL
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/rOkLs on line 4
Process exited with code 255.