3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x=array('a'=>1,'b'=>2); $y=array('c'=>3,'a'=>4); var_dump($x+$y); var_dump(array_merge($x,$y));
Output for 4.3.0 - 7.1.0
array(3) { ["a"]=> int(1) ["b"]=> int(2) ["c"]=> int(3) } array(3) { ["a"]=> int(4) ["b"]=> int(2) ["c"]=> int(3) }