3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class childshow extends fatherclass { public function childshow() { echo "child construct"; } public function father12() { echo "child"; } } $obj1 = new childshow();
Output for 7.0.0 - 7.1.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; childshow has a deprecated constructor in /in/DpTTG on line 2 Fatal error: Class 'fatherclass' not found in /in/DpTTG on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: unknown class fatherclass in /in/DpTTG on line 2
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.7 - 5.6.28
Fatal error: Class 'fatherclass' not found in /in/DpTTG on line 3
Process exited with code 255.