3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace foo { class bar { } } namespace bar\foo { class bar { } } namespace { var_dump(new foo\bar); namespace bar { var_dump(new foo\bar); }
Output for 5.3.0 - 5.4.31
Fatal error: Namespace declarations cannot be nested in /in/DLOP6 on line 14
Process exited with code 255.