3v4l.org

run code in 300+ PHP versions simultaneously
<?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.23, 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.
Output for 5.3.0 - 5.3.22, 5.4.0 - 5.4.12
Fatal error: Namespace declaration statement has to be the very first statement in the script in J4tZh on line 4
Process exited with code 255.

preferences:
202.05 ms | 1395 KiB | 45 Q