3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //will got current directory list $glob = glob('./*'); print_r($glob); //will got nothing? $glob = new GlobIterator('./*'); print_r(iterator_to_array($glob));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Array ( ) Array ( )
Output for 5.0.0 - 5.2.17
Array ( ) Fatal error: Class 'GlobIterator' not found in /in/H62a3 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.6, 4.3.9 - 4.4.9
Array ( ) Fatal error: Cannot instantiate non-existent class: globiterator in /in/H62a3 on line 7
Process exited with code 255.
Output for 4.3.7 - 4.3.8
Fatal error: Cannot instantiate non-existent class: globiterator in /in/H62a3 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Array ( ) Fatal error: Cannot instantiate non-existent class: globiterator in /in/H62a3 on line 7