3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class YourClass { } class MyClass extends YourClass { function __construct() { parent::__construct(); } } $x = new MyClass();
Output for 7.0.0 - 7.1.10
Fatal error: Uncaught Error: Cannot call constructor in /in/D0JhO:11 Stack trace: #0 /in/D0JhO(15): MyClass->__construct() #1 {main} thrown in /in/D0JhO on line 11
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Cannot call constructor in /in/D0JhO on line 11
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Can not call constructor in /in/D0JhO on line 11
Process exited with code 255.
Output for 4.3.0 - 4.4.9