3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(new GlobIterator('/var/*', FilesystemIterator::SKIP_DOTS) as $file) { echo $file.PHP_EOL; //var_dump(get_class_methods($file->openFile())); }
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, hhvm-3.10.0, 7.0.0 - 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 5.3.0 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, hhvm-3.12.0, 7.0.4
Output for 5.0.0 - 5.2.17
Fatal error: Class 'GlobIterator' not found in /in/aRned on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/aRned on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/aRned on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/aRned on line 2
Process exited with code 255.