3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = dir("/tmp"); echo "Handle: " . $d->handle . "\n"; echo "Path: " . $d->path . "\n"; while (false !== ($entry = $d->read())) { echo $entry."\n"; } $d->close();
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Handle: Resource id #5 Path: /tmp . ..
Output for hhvm-3.12.0
Handle: Resource id #4 Path: /tmp . .. perf-3269.map
Output for hhvm-3.10.0
Handle: Resource id #4 Path: /tmp . .. perf-3268.map