3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(glob('/etc/p*'));
based on GRtvX
Output for 5.5.24 - 5.5.28, 5.5.35 - 5.6.12, 5.6.21 - 5.6.28, 7.0.6 - 7.1.0
array(9) { [0]=> string(13) "/etc/pacman.d" [1]=> string(10) "/etc/pam.d" [2]=> string(11) "/etc/passwd" [3]=> string(12) "/etc/php.ini" [4]=> string(20) "/etc/php_archive.ini" [5]=> string(11) "/etc/pkcs11" [6]=> string(12) "/etc/profile" [7]=> string(14) "/etc/profile.d" [8]=> string(14) "/etc/protocols" }
Output for 4.3.0, 5.4.39 - 5.4.45, 5.5.29 - 5.5.32, 5.5.34, 5.6.13 - 5.6.17, 5.6.20, hhvm-3.12.0, 7.0.0 - 7.0.3, 7.0.5
array(8) { [0]=> string(13) "/etc/pacman.d" [1]=> string(10) "/etc/pam.d" [2]=> string(11) "/etc/passwd" [3]=> string(12) "/etc/php.ini" [4]=> string(11) "/etc/pkcs11" [5]=> string(12) "/etc/profile" [6]=> string(14) "/etc/profile.d" [7]=> string(14) "/etc/protocols" }
Output for 4.3.1 - 4.3.6, 4.3.9 - 5.4.38, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
array(0) { }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.7 - 4.3.8
bool(false)