3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res = array( array('a'=>'aa','b'=>'bb'), array('a'=>'aaa','b'=>'bbb') ); $res = $res + array( array('a'=>'a','b'=>'b') ); var_dump($res); $res += array( array('a'=>'aa','b'=>'bb') );
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(2) { ["a"]=> string(2) "aa" ["b"]=> string(2) "bb" } [1]=> array(2) { ["a"]=> string(3) "aaa" ["b"]=> string(3) "bbb" } }