3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/tmp'), 1, 16); foreach ($iterator as $path) { print $path->__toString() . PHP_EOL; }
Output for 5.3.23 - 5.3.29, 5.4.5 - 7.2.0
/tmp/. /tmp/..
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.4