3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recursiveClosure = function($arg) use(&$recursiveClosure) { if (is_array($arg)) { $recursiveClosure($arg); }else{ print_r($arg); } }; $recursiveClosure([1,2,3,4,5]);

preferences:
54.63 ms | 402 KiB | 5 Q