3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array ( 0 => array ( 0 => array ( 'name' => '0', 'address' => '0', 'gender' => '0', 'men' => '0', 'skill' => '0', ), 1 => array ( 'name' => '1', 'address' => '1', 'gender' => '1', 'men' => '1', 'skill' => '1', ), ), 1 => array ( 0 => array ( 'name' => '2', 'address' => '2', 'gender' => '2', 'men' => '2', 'skill' => '2', ), 1 => array ( 0 => '&nbsp;', 1 => '&nbsp;', 2 => '&nbsp;', 3 => '&nbsp;', 4 => '&nbsp;', ), ), ); $test = array_map( // ⑥ function ($group) { return call_user_func_array( 'array_map', array_merge(array(null), $group) ); },$test); var_export($test);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array ( 0 => array ( 0 => array ( 0 => '0', 1 => '1', ), 1 => array ( 0 => '0', 1 => '1', ), 2 => array ( 0 => '0', 1 => '1', ), 3 => array ( 0 => '0', 1 => '1', ), 4 => array ( 0 => '0', 1 => '1', ), ), 1 => array ( 0 => array ( 0 => '2', 1 => '&nbsp;', ), 1 => array ( 0 => '2', 1 => '&nbsp;', ), 2 => array ( 0 => '2', 1 => '&nbsp;', ), 3 => array ( 0 => '2', 1 => '&nbsp;', ), 4 => array ( 0 => '2', 1 => '&nbsp;', ), ), )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/L7uLM on line 46
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/L7uLM on line 46
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/L7uLM on line 46
Process exited with code 255.