3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arrayobj = new ArrayObject(array('zero', 7, 'example'=>'e.g.')); var_dump($arrayobj->offsetGet(1)); var_dump($arrayobj->offsetGet('exampleas')); var_dump($arrayobj->offsetExists('notfound'));
based on Kp2Dt
Output for 5.4.8 - 7.2.0
int(7) Notice: Undefined index: exampleas in /in/r60HK on line 5 NULL bool(false)
Output for 5.0.0 - 5.4.7
int(7) Notice: Undefined index: exampleas in /in/r60HK on line 5 NULL bool(false)
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/r60HK on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/r60HK on line 3