3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( array('a1'), array('a2'), array('a3'), array('a4'), ); $b = array( array('b1'), ); $c = $a + $b; var_dump($c);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> array(1) { [0]=> string(2) "a1" } [1]=> array(1) { [0]=> string(2) "a2" } [2]=> array(1) { [0]=> string(2) "a3" } [3]=> array(1) { [0]=> string(2) "a4" } }