3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { ["hello"]=> string(7) "bonjour" ["goodbye"]=> string(7) "goodbye" }