3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(glob("/dev/*"));
based on 3AeqC
Output for 7.1.20, 7.2.6 - 7.2.11, 7.3.0rc3
bool(false)
Output for 4.3.0, 5.4.41 - 7.1.10, 7.2.0, 7.3.0alpha1 - 7.3.0beta1
array(16) { [0]=> string(12) "/dev/console" [1]=> string(9) "/dev/core" [2]=> string(7) "/dev/fd" [3]=> string(9) "/dev/full" [4]=> string(8) "/dev/net" [5]=> string(9) "/dev/null" [6]=> string(9) "/dev/ptmx" [7]=> string(8) "/dev/pts" [8]=> string(11) "/dev/random" [9]=> string(8) "/dev/shm" [10]=> string(11) "/dev/stderr" [11]=> string(10) "/dev/stdin" [12]=> string(11) "/dev/stdout" [13]=> string(8) "/dev/tty" [14]=> string(12) "/dev/urandom" [15]=> string(9) "/dev/zero" }
Output for 5.4.35 - 5.4.40
array(12) { [0]=> string(12) "/dev/console" [1]=> string(7) "/dev/fd" [2]=> string(9) "/dev/full" [3]=> string(9) "/dev/null" [4]=> string(8) "/dev/pts" [5]=> string(11) "/dev/random" [6]=> string(11) "/dev/stderr" [7]=> string(10) "/dev/stdin" [8]=> string(11) "/dev/stdout" [9]=> string(8) "/dev/tty" [10]=> string(12) "/dev/urandom" [11]=> string(9) "/dev/zero" }
Output for 4.3.1 - 5.4.34
array(13) { [0]=> string(7) "/dev/fd" [1]=> string(12) "/dev/initctl" [2]=> string(9) "/dev/null" [3]=> string(8) "/dev/pts" [4]=> string(11) "/dev/random" [5]=> string(8) "/dev/shm" [6]=> string(11) "/dev/stderr" [7]=> string(10) "/dev/stdin" [8]=> string(11) "/dev/stdout" [9]=> string(8) "/dev/tty" [10]=> string(9) "/dev/tty1" [11]=> string(12) "/dev/urandom" [12]=> string(9) "/dev/zero" }