3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num_cols = 10; $teamtotal = 10; 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>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 5
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 5
Branch analysis from position: 37
Branch analysis from position: 5
Branch analysis from position: 30
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 8
Branch analysis from position: 27
Branch analysis from position: 8
Branch analysis from position: 24
Branch analysis from position: 18
filename:       /in/rDZnW
function name:  (null)
number of ops:  39
compiled vars:  !0 = $num_cols, !1 = $teamtotal, !2 = $k, !3 = $j, !4 = $data_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        ASSIGN                                                   !1, 10
    4     2        ECHO                                                     '%3Ctable%3E'
    5     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->35
    6     5    >   ECHO                                                     '%3Ctr%3E'
    7     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->25
    8     8    >   CONCAT                                           ~9      'col_', !3
          9        FETCH_DIM_R                                      ~10     !4, ~9
         10        FETCH_DIM_R                                      ~11     ~10, !2
         11        CONCAT                                           ~12     '%3Ctd%3E', ~11
         12        CONCAT                                           ~13     ~12, '%3C%2Ftd%3E'
         13        ECHO                                                     ~13
    9    14        IS_SMALLER                                       ~14     0, !3
         15      > JMPZ_EX                                          ~14     ~14, ->18
         16    >   IS_SMALLER                                       ~15     0, !2
         17        BOOL                                             ~14     ~15
         18    > > JMPZ                                                     ~14, ->24
         19    >   CONCAT                                           ~16     'col_', !3
         20        FETCH_DIM_R                                      ~17     !4, ~16
         21        FETCH_DIM_R                                      ~18     ~17, !2
         22        ADD                                              ~19     !1, ~18
         23        ASSIGN                                                   !1, ~19
    7    24    >   PRE_INC                                                  !3
         25    >   IS_SMALLER                                               !3, !0
         26      > JMPNZ                                                    ~22, ->8
   11    27    >   IS_EQUAL                                                 !2, 0
         28      > JMPZ                                                     ~23, ->30
         29    >   ECHO                                                     '%3Ctd%3ETotal%3C%2Ftd%3E'
   12    30    >   CONCAT                                           ~24     '%3Ctd%3E', !1
         31        CONCAT                                           ~25     ~24, '%3C%2Ftd%3E%3C%2Ftr%3E'
         32        ECHO                                                     ~25
   13    33        ASSIGN                                                   !1, 0
    5    34        PRE_INC                                                  !2
         35    >   IS_SMALLER                                               !2, 7
         36      > JMPNZ                                                    ~28, ->5
   15    37    >   ECHO                                                     '%3C%2Ftable%3E'
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.61 ms | 1403 KiB | 13 Q