3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __halt_compiler() {} echo sfsdh;
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.1.6, 5.2.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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
Notice: Use of undefined constant sfsdh - assumed 'sfsdh' in /in/2k2tH on line 5 sfsdh

preferences:
211.99 ms | 1395 KiB | 123 Q