3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php closedir(); closedir(null);
Output for 7.0.28 - 7.3.0rc4
Warning: closedir() expects parameter 1 to be resource, null given in /in/GSI6V on line 4
Output for 5.6.38
Warning: closedir(): no Directory resource supplied in /in/GSI6V on line 3 Warning: closedir() expects parameter 1 to be resource, null given in /in/GSI6V on line 4