3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(glob('var/*') as $o) { echo $o.PHP_EOL; }
based on 4m5QG
Output for 5.4.39 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.1.0
var/cache var/db var/empty var/games var/lib var/local var/log var/mail var/opt var/run var/spool var/tmp
Output for 4.3.0 - 4.3.6, 4.3.9 - 5.4.38, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Output for 4.3.7 - 4.3.8
Warning: Invalid argument supplied for foreach() in /in/H7o1Q on line 3