3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace bla { use test\a; class B { function test () { return a::test(); } } $b = new B(); $b->test(); }
based on aILqm
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'test\a' not found in /in/IUuis:7 Stack trace: #0 /in/IUuis(11): bla\B->test() #1 {main} thrown in /in/IUuis on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Class 'test\a' not found in /in/IUuis on line 7
Process exited with code 255.