3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(dir('/tmp'));
Output for 5.3.18 - 7.2.0
object(Directory)#1 (2) { ["path"]=> string(4) "/tmp" ["handle"]=> resource(5) of type (stream) }