3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goods=["ABC","XYZ","PQR","DEF"]; $qty=[12345,25120,14521,12541]; $rate=[12.00,13.02,15.00,14.00]; $words=["Total Value", "Frieght", "Total Taxable Value", "Tax", "Tax", "Tax", "Total Tax Amount"]; ?> <table> <tr> <th>Sr No.</th> <th>Goods Description</th> <th>Total Quantity(pcs)</th> <th>Rate per unit(Rs.)</th> <th colspan="3">Amount</th> </tr> <?php for($i=0;$i<count($words);$i++) { ?> <tr> <td><?php echo $i+1 .".";?></td> <td><?php if(isset($goods[$i])) echo $goods[$i];?></td> <td><?php if(isset($qty[$i])) echo $qty[$i];?></td> <td><?php if(isset($rate[$i])) echo $rate[$i];?></td> <td><?php echo $words[$i];?></td> </tr> <?php } ?> </table>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 7
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 7
Branch analysis from position: 34
Branch analysis from position: 7
Branch analysis from position: 26
Branch analysis from position: 21
Branch analysis from position: 16
filename:       /in/f1BnW
function name:  (null)
number of ops:  36
compiled vars:  !0 = $goods, !1 = $qty, !2 = $rate, !3 = $words, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, <array>
    8     4        ECHO                                                     '++++%3Ctable%3E%0A++++++%3Ctr%3E%0A++++++++%3Cth%3ESr+No.%3C%2Fth%3E%0A++++++++%3Cth%3EGoods+Description%3C%2Fth%3E%0A++++++++%3Cth%3ETotal+Quantity%28pcs%29%3C%2Fth%3E%0A++++++++%3Cth%3ERate+per+unit%28Rs.%29%3C%2Fth%3E%0A++++++++%3Cth+colspan%3D%223%22%3EAmount%3C%2Fth%3E%0A++++++%3C%2Ftr%3E%0A+'
   17     5        ASSIGN                                                   !4, 0
          6      > JMP                                                      ->31
   19     7    >   ECHO                                                     '++++++++%3Ctr%3E%0A++++++++%3Ctd%3E'
   20     8        ADD                                              ~10     !4, 1
          9        CONCAT                                           ~11     ~10, '.'
         10        ECHO                                                     ~11
         11        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   21    12        ISSET_ISEMPTY_DIM_OBJ                         0          !0, !4
         13      > JMPZ                                                     ~12, ->16
         14    >   FETCH_DIM_R                                      ~13     !0, !4
         15        ECHO                                                     ~13
         16    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   22    17        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !4
         18      > JMPZ                                                     ~14, ->21
         19    >   FETCH_DIM_R                                      ~15     !1, !4
         20        ECHO                                                     ~15
         21    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   23    22        ISSET_ISEMPTY_DIM_OBJ                         0          !2, !4
         23      > JMPZ                                                     ~16, ->26
         24    >   FETCH_DIM_R                                      ~17     !2, !4
         25        ECHO                                                     ~17
         26    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   24    27        FETCH_DIM_R                                      ~18     !3, !4
         28        ECHO                                                     ~18
         29        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++'
   17    30        PRE_INC                                                  !4
         31    >   COUNT                                            ~20     !3
         32        IS_SMALLER                                               !4, ~20
         33      > JMPNZ                                                    ~21, ->7
   27    34    >   ECHO                                                     '++++%3C%2Ftable%3E'
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.8 ms | 1399 KiB | 13 Q