3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $ao = new ArrayObject(array()); $iterator = $ao->getIterator(); $iterator->rewind(); return $iterator->current();
Output for 5.0.0 - 5.0.3, 5.4.6 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.4 - 5.4.5
Notice: ArrayIterator::current(): Array was modified outside object and internal position is no longer valid in /in/lj6CH on line 7
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/lj6CH on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/lj6CH on line 4