3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo error_reporting(), "\n"; error_reporting(-1); namespace one { function assert($assertion, $description) { echo __FUNCTION__, "\n"; assert($assertion, $description); } } namespace two { use function one\assert; assert('1 == true'); assert('true == false'); } namespace three { assert('1 == true'); assert('true == false'); }
Output for 5.3.0 - 5.4.27
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/rRVPH on line 6
Process exited with code 255.