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 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 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
Branch analysis from position: 7
Branch analysis from position: 22
Branch analysis from position: 17
Branch analysis from position: 12
filename:       /in/di99N
function name:  (null)
number of ops:  32
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                                                      ->27
   19     7    >   ECHO                                                     '++++++++%3Ctr%3E%0A++++++++%3Ctd%3E'
   20     8        ISSET_ISEMPTY_DIM_OBJ                         0          !0, !4
          9      > JMPZ                                                     ~10, ->12
         10    >   FETCH_DIM_R                                      ~11     !0, !4
         11        ECHO                                                     ~11
         12    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   21    13        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !4
         14      > JMPZ                                                     ~12, ->17
         15    >   FETCH_DIM_R                                      ~13     !1, !4
         16        ECHO                                                     ~13
         17    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   22    18        ISSET_ISEMPTY_DIM_OBJ                         0          !2, !4
         19      > JMPZ                                                     ~14, ->22
         20    >   FETCH_DIM_R                                      ~15     !2, !4
         21        ECHO                                                     ~15
         22    >   ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
   23    23        FETCH_DIM_R                                      ~16     !3, !4
         24        ECHO                                                     ~16
         25        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++'
   17    26        PRE_INC                                                  !4
         27    >   COUNT                                            ~18     !3
         28        IS_SMALLER                                               !4, ~18
         29      > JMPNZ                                                    ~19, ->7
   26    30    >   ECHO                                                     '++++%3C%2Ftable%3E'
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 1403 KiB | 13 Q