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( $a + $b);
Output for 4.3.0 - 7.2.0
array(4) { ["a"]=> string(1) "1" ["b"]=> string(1) "2" ["c"]=> string(1) "3" ["d"]=> string(1) "d" }