3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array('a'=>'uno', 'b'=>'dos', 'c'=>'tres'); $a2 = array('b'=>'nuevo dos'); $x = array_merge($a1, $a2); var_dump($x);
Output for 4.3.0 - 7.3.0rc4
array(3) { ["a"]=> string(3) "uno" ["b"]=> string(9) "nuevo dos" ["c"]=> string(4) "tres" }