3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php new RecursiveTreeIterator(0); echo (new ReflectionClass('RecursiveTreeIterator'));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught TypeError: Argument 1 passed to RecursiveTreeIterator::__construct() must implement interface Traversable, integer given in /in/B4qFJ:3 Stack trace: #0 /in/B4qFJ(3): RecursiveTreeIterator->__construct(0) #1 {main} thrown in /in/B4qFJ on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Catchable fatal error: Argument 1 passed to RecursiveTreeIterator::__construct() must implement interface Traversable, integer given in /in/B4qFJ on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'RecursiveTreeIterator' not found in /in/B4qFJ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: recursivetreeiterator in /in/B4qFJ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: recursivetreeiterator in /in/B4qFJ on line 3