3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = dir('/mnt'); while ($v = $d->read()) { echo "$v\n"; } $d->close();
Output for 7.2.0
Warning: dir(/mnt): failed to open dir: Permission denied in /in/DonvV on line 2 Fatal error: Uncaught Error: Call to a member function read() on boolean in /in/DonvV:3 Stack trace: #0 {main} thrown in /in/DonvV on line 3
Process exited with code 255.
Output for 4.3.0 - 7.1.10
. ..