3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(readdir());
Output for 7.0.0 - 7.1.10
bool(false)
Output for 5.0.0 - 5.6.28
Warning: readdir(): no Directory resource supplied in /in/uvBfE on line 3 bool(false)
Output for 4.3.0 - 4.4.9
Warning: readdir(): no Directory resource supplied in /in/uvBfE on line 3 NULL