3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace A{ function Hello() { echo __NAMESPACE__; } } namespace B{ function Hello() { echo __NAMESPACE__; } } namespace C; \B\Hello(); \A\Hello();
based on YbkFm
Output for 5.6.38 - 7.3.0rc3
Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in /in/dg532 on line 12
Process exited with code 255.