3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = fopen(__FILE__, 'r'); fseek($f, __COMPILER_HALT_OFFSET__); var_dump(__COMPILER_HALT_OFFSET__, defined('__COMPILER_HALT_OFFSET__')); echo stream_get_contents($f), PHP_EOL; __halt_compiler(); ヾ(〃><)ノ゙☆
based on XjTre
Output for hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.10
int(203) bool(false) ヾ(〃><)ノ゙☆
Output for 5.1.0 - 5.6.30
int(203) bool(true) ヾ(〃><)ノ゙☆
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/VfvBh on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/VfvBh on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VfvBh on line 10
Process exited with code 255.