3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass; $obj->var1=1; $ao = new ArrayObject($obj); $i = $ao->getIterator(); $ao->offsetUnset($i->key()); $i->next(); ?> ===DONE===
based on 00OI4
Output for 5.0.0 - 5.0.3, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
===DONE===
Output for 5.0.4 - 5.6.28
Notice: ArrayIterator::next(): Array was modified outside object and internal position is no longer valid in /in/JHpm0 on line 10 ===DONE===
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/JHpm0 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/JHpm0 on line 5