3v4l.org

run code in 300+ PHP versions simultaneously
<?php while (!empty($results[$i])) { echo '<tr><td>'.$results[$i]['invoice_customer_name1'].'</td><td>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 2) {echo $results[$i]['computed1'];} else echo '0,00'; echo'</td> '; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 3) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 4) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 5) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 6) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 7) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 8) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 9) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 10) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 11) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; if (isset($results[$i]['computed1']) and $results[$i]['computed1'] == 12) {echo "<td>".$results[$i]['computed'];} else echo '<td> 0,00'; echo'</td></tr>'; //ECHO '<tr BGCOLOR="#F0E4CE"><td>'; echo $results[$i]['computed'].'</td>'; //print_r($results[$i]); $i++; } echo'</TABLE>' ////////////////////////////////////// ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: Undefined variable $i in /in/hsQEs on line 2 </TABLE>
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: i in /in/hsQEs on line 2 </TABLE>
Output for 7.3.32 - 7.3.33
</TABLE>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
Notice: Undefined variable: i in /in/hsQEs on line 2 </TABLE>

preferences:
236.22 ms | 402 KiB | 354 Q