3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpxml; $version="1.0"; echo $version; ?>
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant phpxml - assumed 'phpxml' in /in/cJ4M2 on line 1 1.0
Output for hhvm-3.12.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/cJ4M2:1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
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/cJ4M2 on line 1
Process exited with code 255.
Output for 4.3.0 - 5.3.29
<?phpxml; $version="1.0"; echo $version; ?>