3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $goods=["ABC","XYZ","PQR","DEF"]; $qty=[12345,25120,14521,12541]; $rate=[12.00,13.02,15.00,14.00]; ?> <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($goods);$i++) { ?> <tr> <td><?php echo $goods[$i];?></td> <td><?php echo $qty[$i];?></td> <td><?php echo $rate[$i];?></td> </tr> <?php } ?> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Frieght</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Taxable Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Grand Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>ABC</td> <td></td> <td></td> </tr> </table>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
filename:       /in/JYlKP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $goods, !1 = $qty, !2 = $rate, !3 = $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>
   7     3        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+'
  16     4        ASSIGN                                                   !3, 0
         5      > JMP                                                      ->18
  18     6    >   ECHO                                                     '++++++++%3Ctr%3E%0A++++++++%3Ctd%3E'
  19     7        FETCH_DIM_R                                      $8      !0, !3
         8        ECHO                                                     $8
         9        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
  20    10        FETCH_DIM_R                                      $9      !1, !3
        11        ECHO                                                     $9
        12        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3Ctd%3E'
  21    13        FETCH_DIM_R                                      $10     !2, !3
        14        ECHO                                                     $10
        15        ECHO                                                     '%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++'
  16    16        POST_INC                                         ~11     !3
        17        FREE                                                     ~11
        18    >   COUNT                                            ~12     !0
        19        IS_SMALLER                                       ~13     !3, ~12
        20      > JMPNZ                                                    ~13, ->6
  24    21    >   ECHO                                                     '++++++%3Ctr%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3ETotal+Value%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++%3Ctr%3E%0A++++++++%3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E%3C%2Ftd%3E%0A++++++++%3Ctd%3Etax%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++%3Ctr%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3ETotal+Tax+Amount%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++%3Ctr%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3EGrand+Total+Tax+Amount%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++++%3Ctr%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3EABC%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++%3C%2Ftr%3E%0A++++%3C%2Ftable%3E'
 105    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0