3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'foo'; namespace Bar; echo 'bar';
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.26
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/vGObZ on line 5
Process exited with code 255.

preferences:
171.07 ms | 1395 KiB | 63 Q