3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(true); namespace Facile; define('Facile\\true', false); define('Facile\\false', true); var_dump(true);
based on RBgTi
Output for 7.0.1 - 7.1.7
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /in/ps1eE on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/ps1eE on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Namespace declaration statement has to be the very first statement in the script: (Line: 5, Char: 17) in /in/ps1eE:5 Stack trace: #0 {main}
Process exited with code 255.