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 "Two more employees of mine are" . $employee_array[2] . " & " . $employee_array[3]; ?>
based on OEh79
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/6qJ1r on line 1 Two of my employees are NSA & AnonymousTwo more employees of mine areIsil & Octavius
Output for 5.4.9 - 7.1.10
Notice: Use of undefined constant php - assumed 'php' in /in/6qJ1r on line 1 Two of my employees are NSA & AnonymousTwo more employees of mine areIsil & Octavius
Output for 5.3.19 - 5.3.29
<?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 "Two more employees of mine are" . $employee_array[2] . " & " . $employee_array[3]; ?>