3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 1; if (1) { echo 2; __halt_compiler(); echo 3; } echo 4;
Output for 5.1.0 - 5.4.34
Fatal error: __HALT_COMPILER() can only be used from the outermost scope in /in/t2G0u on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.5
12 Fatal error: Call to undefined function __halt_compiler() in /in/t2G0u on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
12 Fatal error: Call to undefined function: __halt_compiler() in /in/t2G0u on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
12 Fatal error: Call to undefined function: __halt_compiler() in /in/t2G0u on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
12 Fatal error: Call to undefined function: __halt_compiler() in /in/t2G0u on line 6