3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace foo { class Bar {} } namespace { class Bar {} } var_dump(new Bar);
Output for 5.3.0 - 5.4.20
Fatal error: No code may exist outside of namespace {} in /in/bPkYr on line 11
Process exited with code 255.