3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('wcf\\true', false); namespace wcf { var_dump(true); } namespace wcf\test { var_dump(true); }
Output for 7.0.1
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /in/MpC7S on line 5
Process exited with code 255.
Output for 5.3.21 - 7.0.0
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/MpC7S on line 5
Process exited with code 255.