3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( array( 'aaa' => 'AAA' ), array( 'bbb' => 'BBB' ), array( 'ccc' => 'CCC' ), ); $r = array(); foreach ($test as $item) { $r = array_merge($r, $item); } var_dump($r);
based on vIrs9
Output for 4.3.0 - 7.1.0
array(3) { ["aaa"]=> string(3) "AAA" ["bbb"]=> string(3) "BBB" ["ccc"]=> string(3) "CCC" }