3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ls($path = '.') { $d = opendir($path); while ($file = readdir($d)) { if (!in_array($file, array(".", "..")) && is_dir(($path == '.' ? "/" : $path."/").$file)) ls(($path == '.' ? "/" : $path."/").$file); echo $path."/".$file."\n"; } closedir($d); } ls();

preferences:
40.47 ms | 402 KiB | 5 Q