3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($handle = opendir('/etc/')) { $blacklist = array('.', '..', 'somedir', 'somefile.php'); while (false !== ($file = readdir($handle))) { if (!in_array($file, $blacklist)) { echo "$file\n"; } } closedir($handle); } ?>

preferences:
51.68 ms | 402 KiB | 5 Q