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";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.89 ms | 2201 KiB | 12 Q