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_recursive($a, $b));
Output for 4.3.0 - 7.1.0
array(1) { ["person"]=> array(2) { ["name"]=> array(2) { [0]=> string(5) "franz" [1]=> string(6) "cheryl" } ["last_name"]=> string(7) "de leon" } }