3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace { echo "something"; } namespace one {} use ns_two;
Output for 5.3.0 - 5.4.30
Warning: The use statement with non-compound name 'ns_two' has no effect in /in/WRE85 on line 9 Fatal error: No code may exist outside of namespace {} in /in/WRE85 on line 9
Process exited with code 255.