3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $person = array( 'height' => 100, 'build' => "average", 'waist' => 38, ); $hobbies = array( 'climbing' => true, 'skiing' => false, 'waist' => 38, ); $total = array_merge($person, $hobbies); print_r($total);
Output for 4.3.0 - 7.1.0
Array ( [height] => 100 [build] => average [waist] => 38 [climbing] => 1 [skiing] => )