3v4l.org

run code in 300+ PHP versions simultaneously
<?php chdir('/tmp'); touch('test1.php'); touch('test2.php'); touch('test3.php'); $it = new GlobIterator("./*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n"; $it = new GlobIterator("*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n";

preferences:
38.3 ms | 402 KiB | 5 Q