3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __halt_compiler() {} echo sfsdh;
based on 6skC7
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected '__halt_compiler' (T_HALT_COMPILER), expecting identifier (T_STRING) or '(' in /in/2k2tH on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_HALT_COMPILER, expecting T_STRING or '(' in /in/2k2tH on line 3
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_HALT_COMPILER, expecting T_STRING in /in/2k2tH on line 3
Process exited with code 255.
Output for 4.3.0 - 5.0.5
Notice: Use of undefined constant sfsdh - assumed 'sfsdh' in /in/2k2tH on line 5 sfsdh