3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array ( 0 => array ( 0 => array ( 0 => '0-NAME', 1 => '1-NAME', ), 1 => array ( 0 => '0-ADDRESS', 1 => '1-ADDRESS', ), 2 => array ( 0 => '0-GENDER', 1 => '1-GENDER', ), 3 => array ( 0 => '0-MEN', 1 => '1-MEN', ), 4 => array ( 0 => '0-SKILL', 1 => '1-SKILL', ), ), 1 => array ( 0 => array ( 0 => '2-NAME', 1 => '&nbsp;', ), 1 => array ( 0 => '2-ADDRESS', 1 => '&nbsp;', ), 2 => array ( 0 => '2-GENDER', 1 => '&nbsp;', ), 3 => array ( 0 => '2-MEN', 1 => '&nbsp;', ), 4 => array ( 0 => '2-SKILL', 1 => '&nbsp;', ), ), ); $test = call_user_func_array('array_merge', $test); var_export($test);
Output for 4.3.0 - 7.1.0
array ( 0 => array ( 0 => '0-NAME', 1 => '1-NAME', ), 1 => array ( 0 => '0-ADDRESS', 1 => '1-ADDRESS', ), 2 => array ( 0 => '0-GENDER', 1 => '1-GENDER', ), 3 => array ( 0 => '0-MEN', 1 => '1-MEN', ), 4 => array ( 0 => '0-SKILL', 1 => '1-SKILL', ), 5 => array ( 0 => '2-NAME', 1 => '&nbsp;', ), 6 => array ( 0 => '2-ADDRESS', 1 => '&nbsp;', ), 7 => array ( 0 => '2-GENDER', 1 => '&nbsp;', ), 8 => array ( 0 => '2-MEN', 1 => '&nbsp;', ), 9 => array ( 0 => '2-SKILL', 1 => '&nbsp;', ), )