3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,array(3,4, array(5,6,7), 8), 9); array_walk_recursive($a, function($v) use (&$r){$r[]=$v;}); print_r($r);

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
59.28 ms | 2688 KiB | 4 Q