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); $sorted = array(); foreach($wrap as $val) { print $val; } var_dump($sorted); ?>
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/J5pj6 on line 22 Array Notice: Array to string conversion in /in/J5pj6 on line 22 Arrayarray(0) { }
Output for 4.3.0 - 5.3.29
ArrayArrayarray(0) { }