3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Foo { class Baz { } } namespace Bar { class Baz { } } namespace { if (true) { use Foo\Baz; } else { use Bar\Baz; } $baz = new Baz(); var_dump(get_class($baz)); }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'use' (T_USE) in /in/I3TtD on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_USE in /in/I3TtD on line 15
Process exited with code 255.