3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(glob( './home/*', GLOB_ONLYDIR ));
based on 7lYbn
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.2.2, 5.4.42 - 7.2.0
array(0) { }
Output for 5.2.3 - 5.4.41
array(1) { [0]=> string(11) "./home/sjon" }
Output for 4.3.7 - 4.3.8
bool(false)