3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(glob('/var/*'));
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(12) { [0]=> string(10) "/var/cache" [1]=> string(7) "/var/db" [2]=> string(10) "/var/empty" [3]=> string(10) "/var/games" [4]=> string(8) "/var/lib" [5]=> string(10) "/var/local" [6]=> string(8) "/var/log" [7]=> string(9) "/var/mail" [8]=> string(8) "/var/opt" [9]=> string(8) "/var/run" [10]=> string(10) "/var/spool" [11]=> string(8) "/var/tmp" }