3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = 10; $cols = 10; echo "<table border=\"1\">"; echo('<tr>'); for ($r =1; $r <= $cols; $r++){ echo("<td>.$r.</td>"); } echo('</tr>'); for($s = 1,$r=1;$s<=rows;$s++){ echo("<tr>"); if($r==1){ echo"<td>$s</td>"; } while($r<=10){ echo'<td>'.$s*$r++.'</td>'; } echo"</tr>"; $r=1;}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 17
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 25
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 17
Branch analysis from position: 38
Branch analysis from position: 17
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 25
Branch analysis from position: 32
Branch analysis from position: 25
Branch analysis from position: 24
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/YGSqF
function name:  (null)
number of ops:  39
compiled vars:  !0 = $rows, !1 = $cols, !2 = $r, !3 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 10
    5     2        ECHO                                                     '%3Ctable+border%3D%221%22%3E'
    6     3        ECHO                                                     '%3Ctr%3E'
    8     4        ASSIGN                                                   !2, 1
          5      > JMP                                                      ->11
    9     6    >   ROPE_INIT                                     3  ~8      '%3Ctd%3E.'
          7        ROPE_ADD                                      1  ~8      ~8, !2
          8        ROPE_END                                      2  ~7      ~8, '.%3C%2Ftd%3E'
          9        ECHO                                                     ~7
    8    10        PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         12      > JMPNZ                                                    ~11, ->6
   10    13    >   ECHO                                                     '%3C%2Ftr%3E'
   11    14        ASSIGN                                                   !3, 1
         15        ASSIGN                                                   !2, 1
         16      > JMP                                                      ->35
   12    17    >   ECHO                                                     '%3Ctr%3E'
   13    18        IS_EQUAL                                                 !2, 1
         19      > JMPZ                                                     ~14, ->24
   14    20    >   ROPE_INIT                                     3  ~16     '%3Ctd%3E'
         21        ROPE_ADD                                      1  ~16     ~16, !3
         22        ROPE_END                                      2  ~15     ~16, '%3C%2Ftd%3E'
         23        ECHO                                                     ~15
   16    24    > > JMP                                                      ->30
   17    25    >   POST_INC                                         ~18     !2
         26        MUL                                              ~19     !3, ~18
         27        CONCAT                                           ~20     '%3Ctd%3E', ~19
         28        CONCAT                                           ~21     ~20, '%3C%2Ftd%3E'
         29        ECHO                                                     ~21
   16    30    >   IS_SMALLER_OR_EQUAL                                      !2, 10
         31      > JMPNZ                                                    ~22, ->25
   20    32    >   ECHO                                                     '%3C%2Ftr%3E'
   21    33        ASSIGN                                                   !2, 1
   11    34        PRE_INC                                                  !3
         35    >   FETCH_CONSTANT                                   ~25     'rows'
         36        IS_SMALLER_OR_EQUAL                                      !3, ~25
         37      > JMPNZ                                                    ~26, ->17
   21    38    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1390 KiB | 13 Q