3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print "<pre>a".PHP_EOL."b".PHP_EOL."c</pre>"; namespace Foo; define('Foo\\PHP_EOL',"\t\t\t"); print "<pre>a".PHP_EOL."b".PHP_EOL."c</pre>";
Output for 5.3.0 - 5.4.13
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/I6SVK on line 4
Process exited with code 255.