3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace; echo 'foo';
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) or '{' in /in/VKSVi on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected ';', expecting T_STRING or T_NS_SEPARATOR or '{' in /in/VKSVi on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Use of undefined constant namespace - assumed 'namespace' in /in/VKSVi on line 3 foo

preferences:
246.58 ms | 1400 KiB | 124 Q