3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($both = new MultipleIterator(MultipleIterator::MIT_NEED_ALL));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
object(MultipleIterator)#1 (1) { ["storage":"SplObjectStorage":private]=> array(0) { } }
Output for hhvm-3.12.0
object(MultipleIterator)#1 (2) { ["iterators":"MultipleIterator":private]=> object(SplObjectStorage)#2 (2) { ["__storage":"SplObjectStorage":private]=> array(0) { } ["__key":"SplObjectStorage":private]=> int(0) } ["flags":"MultipleIterator":private]=> int(1) }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'MultipleIterator' not found in /in/nNtpc on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/nNtpc on line 3
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/nNtpc on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/nNtpc on line 3
Process exited with code 255.