3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use Foo; use FooA; use FooB; use FooC; use FooD as D; use FooE; use FooF; use FooG as G; use FooH; use FooI; use FooJ; use FooZ; namespace Boo { use Bar; use BarA; use BarB; use BarC; use BarD as D; use BarE; use BarF; use BarG as G; use BarH; use BarI; use BarJ; use BarZ; } ?> use Some, Not, PHP, Like, Use, Statement;
based on OR5lX
Output for 7.0.0 - 7.0.1
Warning: The use statement with non-compound name 'Foo' has no effect in /in/EJ33Q on line 2 Warning: The use statement with non-compound name 'FooA' has no effect in /in/EJ33Q on line 3 Warning: The use statement with non-compound name 'FooB' has no effect in /in/EJ33Q on line 4 Warning: The use statement with non-compound name 'FooC' has no effect in /in/EJ33Q on line 5 Warning: The use statement with non-compound name 'FooE' has no effect in /in/EJ33Q on line 7 Warning: The use statement with non-compound name 'FooF' has no effect in /in/EJ33Q on line 8 Warning: The use statement with non-compound name 'FooH' has no effect in /in/EJ33Q on line 10 Warning: The use statement with non-compound name 'FooI' has no effect in /in/EJ33Q on line 11 Warning: The use statement with non-compound name 'FooJ' has no effect in /in/EJ33Q on line 12 Warning: The use statement with non-compound name 'FooZ' has no effect in /in/EJ33Q on line 13 Fatal error: No code may exist outside of namespace {} in /in/EJ33Q on line 29
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Warning: The use statement with non-compound name 'Foo' has no effect in /in/EJ33Q on line 2 Warning: The use statement with non-compound name 'FooA' has no effect in /in/EJ33Q on line 3 Warning: The use statement with non-compound name 'FooB' has no effect in /in/EJ33Q on line 4 Warning: The use statement with non-compound name 'FooC' has no effect in /in/EJ33Q on line 5 Warning: The use statement with non-compound name 'FooE' has no effect in /in/EJ33Q on line 7 Warning: The use statement with non-compound name 'FooF' has no effect in /in/EJ33Q on line 8 Warning: The use statement with non-compound name 'FooH' has no effect in /in/EJ33Q on line 10 Warning: The use statement with non-compound name 'FooI' has no effect in /in/EJ33Q on line 11 Warning: The use statement with non-compound name 'FooJ' has no effect in /in/EJ33Q on line 12 Warning: The use statement with non-compound name 'FooZ' has no effect in /in/EJ33Q on line 13 Fatal error: No code may exist outside of namespace {} in /in/EJ33Q on line 28
Process exited with code 255.