3v4l.org

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