3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $conf = array(); $test = array( array( 'conf1' => '1' ), array( 'conf2' => '2' ), array( 'conf3' => '3' ), ); foreach ($test as $item) { $config = array_merge($conf, $item); } var_dump($conf);
based on g4CcW
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(0) { }