3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class FStack extends ArrayObject { } $stack = new FStack; $stack[] = "hello"; var_dump($stack);
Output for 5.3.0 - 7.1.0
object(FStack)#1 (1) { ["storage":"ArrayObject":private]=> array(1) { [0]=> string(5) "hello" } }
Output for 5.0.0 - 5.2.17
object(FStack)#1 (1) { [0]=> string(5) "hello" }
Output for 4.3.2 - 4.4.9
Fatal error: Class fstack: Cannot inherit from undefined class arrayobject in /in/CMeUt on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Class fstack: Cannot inherit from undefined class arrayobject in /in/CMeUt on line 3