3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => array( 0 => 'My Property', 1 => array( 0 => 'Tiles Market', 1 => 'My Floor' ) ) ); var_dump($array); $result = call_user_func_array('array_merge', $array); var_dump($result); $result = call_user_func_array('array_merge', $result);
Output for 5.0.0 - 7.1.0
array(1) { [0]=> array(2) { [0]=> string(11) "My Property" [1]=> array(2) { [0]=> string(12) "Tiles Market" [1]=> string(8) "My Floor" } } } array(2) { [0]=> string(11) "My Property" [1]=> array(2) { [0]=> string(12) "Tiles Market" [1]=> string(8) "My Floor" } } Warning: array_merge(): Argument #1 is not an array in /in/h3bWH on line 14
Output for 4.3.0 - 4.4.9
array(1) { [0]=> array(2) { [0]=> string(11) "My Property" [1]=> array(2) { [0]=> string(12) "Tiles Market" [1]=> string(8) "My Floor" } } } array(2) { [0]=> string(11) "My Property" [1]=> array(2) { [0]=> string(12) "Tiles Market" [1]=> string(8) "My Floor" } }