3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace A { const Z = 9; define ('X', 0); } namespace B { const Z = 9; } define ('X', 0);
Output for 5.3.0 - 5.4.23
Fatal error: No code may exist outside of namespace {} in /in/6FYJj on line 20
Process exited with code 255.