3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = new \GlobIterator('/test/test_*.gz'); $i->count() == 1;
Output for 5.3.0 - 5.3.6, 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.14 - 7.1.0
Output for 7.0.0 - 7.0.6
Fatal error: Uncaught LogicException: The parent constructor was not called: the object is in an invalid state in /in/OBVZC:3 Stack trace: #0 /in/OBVZC(3): SplFileInfo->_bad_state_ex() #1 {main} thrown in /in/OBVZC on line 3
Process exited with code 255.
Output for 5.3.7 - 5.6.21
Fatal error: Uncaught exception 'LogicException' with message 'The parent constructor was not called: the object is in an invalid state ' in /in/OBVZC:3 Stack trace: #0 /in/OBVZC(3): SplFileInfo->_bad_state_ex() #1 {main} thrown in /in/OBVZC on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/OBVZC on line 2 Fatal error: Class 'GlobIterator' not found in /in/OBVZC on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/OBVZC on line 2 Fatal error: Cannot instantiate non-existent class: globiterator in /in/OBVZC on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/OBVZC on line 2 Fatal error: Cannot instantiate non-existent class: globiterator in /in/OBVZC on line 2