3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123]], [['res' => 123]])); } test(1, 2, 3); } /*namespace { function test($a, $b, $c) { var_dump(call_user_func('func_get_args')); var_dump(call_user_func('get_defined_vars')); } test(1, 2, 3); }*/
based on WJ1bN
Output for 7.0.0 - 7.2.0
Warning: extract() expects parameter 2 to be integer, array given in /in/km5Km on line 5 array(1) { [0]=> NULL }
Output for 5.4.11 - 5.6.28
Warning: extract() expects parameter 2 to be long, array given in /in/km5Km on line 5 array(1) { [0]=> NULL }
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/km5Km on line 5
Process exited with code 255.