3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Api\Something { class Foo { } } namespace Api\SomethingElse { use \Api\Something as Private; class Bar { } }
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'Private' (T_PRIVATE), expecting identifier (T_STRING) in /in/gYoUF on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PRIVATE, expecting T_STRING in /in/gYoUF on line 13
Process exited with code 255.

preferences:
215.86 ms | 1399 KiB | 64 Q