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 $content) { print $content; } //var_dump($sorted); ?>
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/QZIJ1 on line 22 Array Notice: Array to string conversion in /in/QZIJ1 on line 22 Array
Output for 4.3.0 - 5.3.29
ArrayArray