3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = dir('/tmp'); while ($v = $d->read()) { echo "$v\n"; } $d->close(); readfile('/tmp/copyofpasswd');
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
. .. Warning: readfile(/tmp/copyofpasswd): failed to open stream: No such file or directory in /in/rTQc7 on line 8
Output for hhvm-3.12.0
. .. perf-27780.map Warning: No such file or directory in /in/rTQc7 on line 8
Output for hhvm-3.10.0
. .. perf-27778.map Warning: No such file or directory in /in/rTQc7 on line 8