3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo\Bar; class Banana { } namespace Lol\Omg; use Foo\Bar; echo 1; $a = new Banana;
based on sUjJE
Output for 7.0.0 - 7.2.0
1 Fatal error: Uncaught Error: Class 'Lol\Omg\Banana' not found in /in/CJcEK:14 Stack trace: #0 {main} thrown in /in/CJcEK on line 14
Process exited with code 255.
Output for 5.3.18 - 5.6.28
1 Fatal error: Class 'Lol\Omg\Banana' not found in /in/CJcEK on line 14
Process exited with code 255.