3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $store = array(); $first = array('one' => 1, 'two' => 2); $store = $first; var_dump($store); $second = array('two' => 2, 'three' => 3); $store = array_merge($store, $second); var_dump($store);
based on UuShO
Output for 4.3.0 - 7.2.0
array(2) { ["one"]=> int(1) ["two"]=> int(2) } array(3) { ["one"]=> int(1) ["two"]=> int(2) ["three"]=> int(3) }