3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[] = array(1 => array(2 => 2, 3 => array(4 => 4, 5 => 5)), 6 => 6); function showArray(&$arr) { echo('<pre>'.print_r($arr,true).'</pre><br>'); } array_walk_recursive($arr, 'showArray');

preferences:
49.24 ms | 402 KiB | 5 Q