3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
/tmp/. /tmp/..
Output for hhvm-3.12.0
/tmp/. /tmp/.. /tmp/perf-9345.map
Output for hhvm-3.10.0
/tmp/. /tmp/.. /tmp/perf-9344.map
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.4