3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $iterator = new RecursiveDirectoryIterator('/tmp'); foreach ($iterator as $fileinfo) { var_dump($fileinfo); exit; }
Output for 5.3.23 - 5.3.29, 5.4.5 - 7.1.0
object(SplFileInfo)#3 (2) { ["pathName":"SplFileInfo":private]=> string(6) "/tmp/." ["fileName":"SplFileInfo":private]=> string(1) "." }
Output for 5.0.0 - 5.3.22, 5.4.0 - 5.4.4
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: recursivedirectoryiterator in /in/UueMX on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: recursivedirectoryiterator in /in/UueMX on line 3