3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class C { function __construct() {} } class A extends C { } new A(new B); echo 123;
based on UoKFW
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'B' not found in /in/ILqgM:5 Stack trace: #0 {main} thrown in /in/ILqgM on line 5
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'B' not found in /in/ILqgM on line 5
Process exited with code 255.
Output for 4.3.0 - 4.4.9
123