3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php?>
based on kuLmD
Output for 7.2.0 - 7.2.12
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/PMsM1 on line 1
Output for 5.4.0 - 5.6.38, 7.0.0 - 7.1.24
Notice: Use of undefined constant php - assumed 'php' in /in/PMsM1 on line 1
Output for hhvm-3.22.0
Fatal error: Uncaught Error: <?php directive must be followed by whitespace, newline, or EOF (Line: 1, Char: 5) syntax error, unexpected T_HH_ERROR, expecting $end in /in/PMsM1:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught Error: <?php directive must be followed by whitespace, newline, or EOF (Line: 1, Char: 5) syntax error, unexpected T_HH_ERROR, expecting $end in /in/PMsM1:1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: <?php directive must be followed by whitespace, newline, or EOF (Line: 1, Char: 5) syntax error, unexpected T_HH_ERROR, expecting $end in /in/PMsM1 on line 1
Process exited with code 255.
Output for 4.3.0 - 5.3.29
<?php?>