run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace a; define('t', true, true); define('a\\true', false, t); define('a\\false', t, t); namespace Api\Something { } namespace Api\SomethingElse { use \Api\Something as Private; }
Output for 7.0.0 - 7.1.0RC3
Parse error: syntax error, unexpected 'Private' (T_PRIVATE), expecting identifier (T_STRING) in /in/cjCst on line 14
Process exited with code 255.
Output for 5.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0
Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in /in/cjCst on line 9
Process exited with code 255.