3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "<table border='1' style='border-collapse: collapse;border-color: silver;'>"; echo "<tr style='font-weight: bold;'>"; echo "<td width='150' align='center'>Class</td>"; echo "</tr>"; foreach ($query_class_array as $row) { echo '<td width="150" align=center>' . $row['Class'] . '</td>'; echo '</tr>'; } ?> ?>
based on U6agT
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
<table border='1' style='border-collapse: collapse;border-color: silver;'><tr style='font-weight: bold;'><td width='150' align='center'>Class</td></tr> Notice: Undefined variable: query_class_array in /in/fcerm on line 9 Warning: Invalid argument supplied for foreach() in /in/fcerm on line 9 ?>
Output for hhvm-3.12.0
<table border='1' style='border-collapse: collapse;border-color: silver;'><tr style='font-weight: bold;'><td width='150' align='center'>Class</td></tr> Notice: Undefined variable: query_class_array in /in/fcerm on line 13 Warning: Invalid argument supplied for foreach() in /in/fcerm on line 13 ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
<table border='1' style='border-collapse: collapse;border-color: silver;'><tr style='font-weight: bold;'><td width='150' align='center'>Class</td></tr> Warning: Invalid argument supplied for foreach() in /in/fcerm on line 9 ?>
Output for 4.3.11
<table border='1' style='border-collapse: collapse;border-color: silver;'><tr style='font-weight: bold;'><td width='150' align='center'>Class</td></tr>?>