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>'); } array_walk_recursive($arr, 'showArrow');

preferences:
48.3 ms | 402 KiB | 5 Q