3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = dir('/tmp'); while ($v = $d->read()) { echo "$v\n"; } $d->close(); echo "\n-----------------------------------------------------------------\n"; readfile('/tmp/error-output.txt');
Output for 5.3.0 - 7.1.0
. .. ----------------------------------------------------------------- Warning: readfile(/tmp/error-output.txt): failed to open stream: No such file or directory in /in/LcEvq on line 10