3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
178.35 ms | 1395 KiB | 60 Q