3v4l.org

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