3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class CtBase { } class MyExtendedClass extends CtBase { public function __construct() { parent::__construct(); } } $eh = new MyExtendedClass();
based on 5oL3P
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Cannot call constructor in /in/ODf1B:9 Stack trace: #0 /in/ODf1B(13): MyExtendedClass->__construct() #1 {main} thrown in /in/ODf1B on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Cannot call constructor in /in/ODf1B on line 9
Process exited with code 255.