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 b7D7e
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function C\B\Hello() in /in/sZe0b:14 Stack trace: #0 {main} thrown in /in/sZe0b on line 14
Process exited with code 255.
Output for 5.6.38
Fatal error: Call to undefined function C\B\Hello() in /in/sZe0b on line 14
Process exited with code 255.