3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //trait Blah { //} class B extends A{} new B(); class A{ use Blah; }
based on gj74J
Output for 7.3.0beta1 - 7.3.0rc3
Fatal error: Uncaught Error: Class 'A' not found in /in/YhutW:7 Stack trace: #0 {main} thrown in /in/YhutW on line 7
Process exited with code 255.
Output for 5.5.0 - 7.2.0
Fatal error: Class 'A' not found in /in/YhutW on line 7
Process exited with code 255.