3v4l.org

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