3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<table>"; for($k=0;$k<7;$k++){ // k goes from 0-7 echo "<tr>"; for($j=0;$j<$num_cols;$j++){ // j goes from 0-19 echo "<td>" . $data_array['col_'.$j][$k] . "</td>"; if ($j > 0 and $k > 0) {$teamtotal = $teamtotal + $data_array['col_'.$j][$k];} } **** if ($k=0) {echo "<td>Total</td>";} echo "<td>" . $teamtotal . "</td></tr>"; $teamtotal = 0; } echo "</table>";
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '*' in /in/pkJ8v on line 9
Process exited with code 255.

preferences:
177.03 ms | 1395 KiB | 64 Q