3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
use Some, Not, PHP, Like, Use, Statement; <?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; }
Output for 7.0.1
Warning: The use statement with non-compound name 'Foo' has no effect in /in/OR5lX on line 3 Warning: The use statement with non-compound name 'FooA' has no effect in /in/OR5lX on line 4 Warning: The use statement with non-compound name 'FooB' has no effect in /in/OR5lX on line 5 Warning: The use statement with non-compound name 'FooC' has no effect in /in/OR5lX on line 6 Warning: The use statement with non-compound name 'FooE' has no effect in /in/OR5lX on line 8 Warning: The use statement with non-compound name 'FooF' has no effect in /in/OR5lX on line 9 Warning: The use statement with non-compound name 'FooH' has no effect in /in/OR5lX on line 11 Warning: The use statement with non-compound name 'FooI' has no effect in /in/OR5lX on line 12 Warning: The use statement with non-compound name 'FooJ' has no effect in /in/OR5lX on line 13 Warning: The use statement with non-compound name 'FooZ' has no effect in /in/OR5lX on line 14 Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /in/OR5lX on line 15
Process exited with code 255.
Output for 5.3.21 - 7.0.0
Warning: The use statement with non-compound name 'Foo' has no effect in /in/OR5lX on line 3 Warning: The use statement with non-compound name 'FooA' has no effect in /in/OR5lX on line 4 Warning: The use statement with non-compound name 'FooB' has no effect in /in/OR5lX on line 5 Warning: The use statement with non-compound name 'FooC' has no effect in /in/OR5lX on line 6 Warning: The use statement with non-compound name 'FooE' has no effect in /in/OR5lX on line 8 Warning: The use statement with non-compound name 'FooF' has no effect in /in/OR5lX on line 9 Warning: The use statement with non-compound name 'FooH' has no effect in /in/OR5lX on line 11 Warning: The use statement with non-compound name 'FooI' has no effect in /in/OR5lX on line 12 Warning: The use statement with non-compound name 'FooJ' has no effect in /in/OR5lX on line 13 Warning: The use statement with non-compound name 'FooZ' has no effect in /in/OR5lX on line 14 Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/OR5lX on line 15
Process exited with code 255.