3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = array('a' => 1, 'b' => 2, 'c'); $append = array('a' => 3, 'b' => 4); $rst = $list + $append; var_dump($rst);
based on kXXQD
Output for 4.3.0 - 7.2.0
array(3) { ["a"]=> int(1) ["b"]=> int(2) [0]=> string(1) "c" }