3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php> $employee_array[0] = "NSA"; $employee_array[1] = "Anonymous"; $employee_array[2] = "Isil"; $employee_array[3] = "Octavius"; echo "Two of my employees are " . $employee_array[0] . " & " . $employee_array[1]; echo "<br />Two more employees of mine are " . $employee_array[2] . " & " . $employee_array[3]; ?>
based on 9LMKc
Output for 7.2.0
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/HC7lH on line 1 Two of my employees are NSA & Anonymous<br />Two more employees of mine are Isil & Octavius
Output for 5.5.0 - 5.6.30, 7.0.0 - 7.1.10
Notice: Use of undefined constant php - assumed 'php' in /in/HC7lH on line 1 Two of my employees are NSA & Anonymous<br />Two more employees of mine are Isil & Octavius
Output for hhvm-3.11.1 - 3.12.14, hhvm-3.15.4 - 3.17.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/HC7lH:1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.13.2

Process exited with code 137.
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/HC7lH on line 1
Process exited with code 255.