3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(glob('/sys/*'));
Output for 7.1.20, 7.2.6 - 7.2.8
bool(false)
Output for 4.3.1 - 5.3.28, 5.4.0 - 5.4.27, 5.5.24 - 7.1.10, 7.2.0
array(7) { [0]=> string(10) "/sys/block" [1]=> string(8) "/sys/bus" [2]=> string(10) "/sys/class" [3]=> string(8) "/sys/dev" [4]=> string(12) "/sys/devices" [5]=> string(7) "/sys/fs" [6]=> string(11) "/sys/kernel" }
Output for 4.3.0, 5.3.29, 5.4.28 - 5.4.45
array(11) { [0]=> string(10) "/sys/block" [1]=> string(8) "/sys/bus" [2]=> string(10) "/sys/class" [3]=> string(8) "/sys/dev" [4]=> string(12) "/sys/devices" [5]=> string(13) "/sys/firmware" [6]=> string(7) "/sys/fs" [7]=> string(15) "/sys/hypervisor" [8]=> string(11) "/sys/kernel" [9]=> string(11) "/sys/module" [10]=> string(10) "/sys/power" }