3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr=array('3'=>array("a","b","c"),'4'=>array("d","e")); echo "<pre>";print_r(array_merge(array_values($arr))); echo "<pre>";print_r(call_user_func_array('array_merge', $arr)); ;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<pre>Array ( [0] => Array ( [0] => a [1] => b [2] => c ) [1] => Array ( [0] => d [1] => e ) ) <pre>Array ( [0] => a [1] => b [2] => c [3] => d [4] => e )