3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=67359 try { $rdi = new recursiveDirectoryIterator('/etc/php', FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS); $it = new recursiveIteratorIterator( $rdi ); $it->seek(1); while( $it->valid()) { if( $it->isFile() ) { echo $it->current()."\n"; } $it->next(); } echo $it->current(); } catch(Exception $e) { echo $e->getMessage(); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
RecursiveDirectoryIterator::__construct(/etc/php): Failed to open directory: No such file or directory

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.46 ms | 401 KiB | 8 Q