3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ 'id' => 123, 'changed' => true ]; $arr2 = [ 'link' => '', 'result' => true, 'id' => false, 'changed' => false ]; print_r($arr); $arr = array_merge($arr2, $arr); print_r($arr);
based on OFGBK
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Array ( [id] => 123 [changed] => 1 ) Array ( [link] => [result] => 1 [id] => 123 [changed] => 1 )