3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = dir('/tmp'); while ($v = $d->read()) { echo "$v\n"; echo "\n-----------------------------------------------------------------\n"; readfile('/tmp/' . $v); echo "\n-----------------------------------------------------------------\n"; } $d->close();

preferences:
44.7 ms | 402 KiB | 5 Q