3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id= array("1","2","3","4","5","6","7","8","9","10","11","12"); $maxcols = 8; $i = 0;$j=0;$t=0;$s=0; $maxid = count($id); echo "<table id='table1'>\n<tr>"; foreach ($id as $k => $v) { if($t == 0) { while ($t <= $maxcols-1) { if($s < $maxid) { $s++;$t++; echo "<td class='mark'>id$s</td>"; } else { echo "<td class='mark'></td>";$t++;$s++; } } echo "</tr><tr>"; } else { } echo "<td id='0'><div id='{$k}' class='drag t1'>{$v}</div></td>"; $i++; if ($i == $maxcols) { echo "</tr>\n<tr>"; if($j == 0) { while ($j <= $maxcols-1) { if($s < $maxid) { $s++;$j++; echo "<td class='mark'>id$s</td>"; } else { echo "<td class='mark'></td>";$j++;$s++; } } echo "</tr>\n<tr>"; } $i=0; } } echo "</tr>\n</table>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 63
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 63
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 32
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 15
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 62
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 61
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 45
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 54
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 45
Branch analysis from position: 60
Branch analysis from position: 45
Branch analysis from position: 61
Branch analysis from position: 62
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 15
Branch analysis from position: 30
Branch analysis from position: 15
Branch analysis from position: 32
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
filename:       /in/J4Re7
function name:  (null)
number of ops:  66
compiled vars:  !0 = $id, !1 = $maxcols, !2 = $i, !3 = $j, !4 = $t, !5 = $s, !6 = $maxid, !7 = $v, !8 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 8
          2        ASSIGN                                                   !2, 0
          3        ASSIGN                                                   !3, 0
          4        ASSIGN                                                   !4, 0
          5        ASSIGN                                                   !5, 0
    7     6        COUNT                                            ~15     !0
          7        ASSIGN                                                   !6, ~15
    9     8        ECHO                                                     '%3Ctable+id%3D%27table1%27%3E%0A%3Ctr%3E'
   11     9      > FE_RESET_R                                       $17     !0, ->63
         10    > > FE_FETCH_R                                       ~18     $17, !7, ->63
         11    >   ASSIGN                                                   !8, ~18
   14    12        IS_EQUAL                                                 !4, 0
         13      > JMPZ                                                     ~20, ->32
   17    14    > > JMP                                                      ->27
   18    15    >   IS_SMALLER                                               !5, !6
         16      > JMPZ                                                     ~21, ->24
   20    17    >   PRE_INC                                                  !5
         18        PRE_INC                                                  !4
         19        ROPE_INIT                                     3  ~25     '%3Ctd+class%3D%27mark%27%3Eid'
         20        ROPE_ADD                                      1  ~25     ~25, !5
         21        ROPE_END                                      2  ~24     ~25, '%3C%2Ftd%3E'
         22        ECHO                                                     ~24
         23      > JMP                                                      ->27
   24    24    >   ECHO                                                     '%3Ctd+class%3D%27mark%27%3E%3C%2Ftd%3E'
         25        PRE_INC                                                  !4
         26        PRE_INC                                                  !5
   17    27    >   SUB                                              ~29     !1, 1
         28        IS_SMALLER_OR_EQUAL                                      !4, ~29
         29      > JMPNZ                                                    ~30, ->15
   27    30    >   ECHO                                                     '%3C%2Ftr%3E%3Ctr%3E'
         31      > JMP                                                      ->32
   33    32    >   ROPE_INIT                                     5  ~32     '%3Ctd+id%3D%270%27%3E%3Cdiv+id%3D%27'
         33        ROPE_ADD                                      1  ~32     ~32, !8
         34        ROPE_ADD                                      2  ~32     ~32, '%27+class%3D%27drag+t1%27%3E'
         35        ROPE_ADD                                      3  ~32     ~32, !7
         36        ROPE_END                                      4  ~31     ~32, '%3C%2Fdiv%3E%3C%2Ftd%3E'
         37        ECHO                                                     ~31
         38        PRE_INC                                                  !2
   34    39        IS_EQUAL                                                 !2, !1
         40      > JMPZ                                                     ~36, ->62
   36    41    >   ECHO                                                     '%3C%2Ftr%3E%0A%3Ctr%3E'
   38    42        IS_EQUAL                                                 !3, 0
         43      > JMPZ                                                     ~37, ->61
   40    44    > > JMP                                                      ->57
   41    45    >   IS_SMALLER                                               !5, !6
         46      > JMPZ                                                     ~38, ->54
   43    47    >   PRE_INC                                                  !5
         48        PRE_INC                                                  !3
         49        ROPE_INIT                                     3  ~42     '%3Ctd+class%3D%27mark%27%3Eid'
         50        ROPE_ADD                                      1  ~42     ~42, !5
         51        ROPE_END                                      2  ~41     ~42, '%3C%2Ftd%3E'
         52        ECHO                                                     ~41
         53      > JMP                                                      ->57
   47    54    >   ECHO                                                     '%3Ctd+class%3D%27mark%27%3E%3C%2Ftd%3E'
         55        PRE_INC                                                  !3
         56        PRE_INC                                                  !5
   40    57    >   SUB                                              ~46     !1, 1
         58        IS_SMALLER_OR_EQUAL                                      !3, ~46
         59      > JMPNZ                                                    ~47, ->45
   50    60    >   ECHO                                                     '%3C%2Ftr%3E%0A%3Ctr%3E'
   55    61    >   ASSIGN                                                   !2, 0
   11    62    > > JMP                                                      ->10
         63    >   FE_FREE                                                  $17
   60    64        ECHO                                                     '%3C%2Ftr%3E%0A%3C%2Ftable%3E'
   63    65      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.32 ms | 1399 KiB | 13 Q