3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(1 => "Test1", 2 => "Test2"); $array2 = array(3 => "Test3", 4 => "Test4"); $array1 += $array2; print_r($array1);
Output for 4.3.0 - 7.1.0
Array ( [1] => Test1 [2] => Test2 [3] => Test3 [4] => Test4 )