3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test($a, $b, $c) { var_dump(array_map('get_defined_vars', [1, 2])); } test(4, 5, 6);
Output for 7.1.0 - 7.2.0
Warning: Cannot call get_defined_vars() dynamically in /in/AQFfv on line 4 Warning: Cannot call get_defined_vars() dynamically in /in/AQFfv on line 4 array(2) { [0]=> NULL [1]=> NULL }
Output for 5.4.11 - 7.0.20
array(2) { [0]=> array(3) { ["a"]=> int(4) ["b"]=> int(5) ["c"]=> int(6) } [1]=> array(3) { ["a"]=> int(4) ["b"]=> int(5) ["c"]=> int(6) } }
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/AQFfv on line 4
Process exited with code 255.