3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $it = new GlobIterator('/tmp/*'); var_dump(iterator_to_array($it, true));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
array(0) { }
Output for hhvm-3.12.0
array(1) { ["/tmp/perf-10970.map"]=> object(SplFileInfo)#2 (3) { ["fileName":"SplFileInfo":private]=> string(19) "/tmp/perf-10970.map" ["fileClass":"SplFileInfo":private]=> string(13) "SplFileObject" ["infoClass":"SplFileInfo":private]=> string(11) "SplFileInfo" } }
Output for hhvm-3.10.0
array(1) { ["/tmp/perf-10969.map"]=> object(SplFileInfo)#2 (3) { ["fileName":"SplFileInfo":private]=> string(19) "/tmp/perf-10969.map" ["fileClass":"SplFileInfo":private]=> string(13) "SplFileObject" ["infoClass":"SplFileInfo":private]=> string(11) "SplFileInfo" } }