3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = [['item1', 'update']]; $arr2 = [['item2', 'create']]; $arr3 = [['item2', 'update']]; //var_dump(array_merge($arr1, $arr2)); var_dump($arr1[] = $arr2); //var_dump(array_merge($arr2, $arr3));
based on tt5U4
Output for 5.6.0 - 7.3.0rc3
array(1) { [0]=> array(2) { [0]=> string(5) "item2" [1]=> string(6) "create" } }