3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('code' => 500, 'am' => 600, 'cc' => 560); $b = array('am' => 40, 'dd' => 100); var_dump(array_merge($a, $b)); unset($a['code']);
Output for 4.3.0 - 7.1.0
array(4) { ["code"]=> int(500) ["am"]=> int(40) ["cc"]=> int(560) ["dd"]=> int(100) }