3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* Default */ $en = array( 'hello' => 'hello', 'goodbye' => 'goodbye' ); /* User selection */ $fr = array( 'hello' => 'bonjour' ); $lang = array_merge($en, $fr); var_dump($lang); /* array(2) { ["hello"]=> string(7) "bonjour" ["goodbye"]=> string(7) "goodbye" } */
Output for 4.3.0 - 7.2.0
array(2) { ["hello"]=> string(7) "bonjour" ["goodbye"]=> string(7) "goodbye" }