3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new ArrayObject(array(1,2,3,4,5)); $x->__construct(array()); var_dump($x);
Output for 5.3.0 - 7.1.0
object(ArrayObject)#1 (1) { ["storage":"ArrayObject":private]=> array(0) { } }
Output for 5.0.0 - 5.2.17
object(ArrayObject)#1 (0) { }
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: arrayobject in <b>/in/4jDPB</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: arrayobject in <b>/in/4jDPB</b> on line <b>3</b><br />