3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "/home/sjon/phpshell/root/php-5.5.0/lib/php/extensions/no-debug-non-zts-20121212/vls.so"; //$dir = dir($path); try { $file = new \SplFileObject($path, 'r'); } catch (Exception $e) { echo $e->getMessage(); exit;; } var_dump($file->isFile()); exit;; while (($entry = $dir->read()) !== false) { var_dump($entry); try { $file = new \SplFileObject($path. $entry, 'r'); } catch (Exception $e) { continue; } var_dump($file->isFile()); }

preferences:
48.8 ms | 402 KiB | 5 Q