3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('person' => array( 'name' => 'franz', 'last_name' => 'de leon', )); $b = array('person' => array( 'name' => 'cheryl', )); var_dump(array_merge($a, $b));
Output for 4.3.0 - 7.1.0
array(1) { ["person"]=> array(1) { ["name"]=> string(6) "cheryl" } }