3v4l.org

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