3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(__LINE__, __COMPILER_HALT_OFFSET__); __halt_compiler();
based on J1oVP
Output for 5.1.0 - 7.1.0
int(3) int(72)
Output for 5.0.0 - 5.0.5
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__' in /in/hnDip on line 3 int(3) string(24) "__COMPILER_HALT_OFFSET__" Fatal error: Call to undefined function __halt_compiler() in /in/hnDip on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__' in /in/hnDip on line 3 int(3) string(24) "__COMPILER_HALT_OFFSET__" Fatal error: Call to undefined function: __halt_compiler() in /in/hnDip on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__' in /in/hnDip on line 3 int(3) string(24) "__COMPILER_HALT_OFFSET__" Fatal error: Call to undefined function: __halt_compiler() in /in/hnDip on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__' in /in/hnDip on line 3 int(3) string(24) "__COMPILER_HALT_OFFSET__" Fatal error: Call to undefined function: __halt_compiler() in /in/hnDip on line 5