3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Foo { use Exception; class namespace\Exception extends Exception { } } namespace { use Foo\Exception; throw new Exception(); }
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE), expecting identifier (T_STRING) in /in/0opg9 on line 5
Process exited with code 255.
Output for 5.3.7 - 5.3.28
Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /in/0opg9 on line 5
Process exited with code 255.