3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('Foo\\true', false); namespace Foo; if (true) { echo "TRUE"; } else { echo "FALSE!!!"; }
Output for 5.3.0 - 5.3.20, 5.4.0 - 5.4.10
Fatal error: Namespace declaration statement has to be the very first statement in the script in 8d2pE on line 3
Process exited with code 255.

preferences:
161.73 ms | 1400 KiB | 39 Q