3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace; echo 'foo';
based on OvPXi
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 - 5.2.17
Notice: Use of undefined constant namespace - assumed 'namespace' in /in/VKSVi on line 3 foo