3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wrap = array(); $a = array(); $a1 = 'aaaaa11111'; $a2 = 'aaaaa22222222222'; $b = array(); $b1 = 'bbbbbbbbbbbbbbb'; $a[] = $a1; $a[] = $a2; $b[] = $b1; $wrap[] = $a; $wrap[] = $b; var_dump($wrap); ?>
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(2) { [0]=> string(10) "aaaaa11111" [1]=> string(16) "aaaaa22222222222" } [1]=> array(1) { [0]=> string(15) "bbbbbbbbbbbbbbb" } }