3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; echo "<tr><th>Quantity</th>"; echo "<th>Price</th></tr>"; while ( $counter <= 100 ) { echo "<tr><td>"; echo $counter; echo "</td><td>"; echo $brush_price * $counter; echo "</td></tr>"; $counter = $counter + 10; } echo "</table>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/dm3ut
function name:  (null)
number of ops:  18
compiled vars:  !0 = $brush_price, !1 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, 10
    5     2        ECHO                                                     '%3Ctable+border%3D%221%22+align%3D%22center%22%3E'
    6     3        ECHO                                                     '%3Ctr%3E%3Cth%3EQuantity%3C%2Fth%3E'
    7     4        ECHO                                                     '%3Cth%3EPrice%3C%2Fth%3E%3C%2Ftr%3E'
    8     5      > JMP                                                      ->14
    9     6    >   ECHO                                                     '%3Ctr%3E%3Ctd%3E'
   10     7        ECHO                                                     !1
   11     8        ECHO                                                     '%3C%2Ftd%3E%3Ctd%3E'
   12     9        MUL                                              ~4      !0, !1
         10        ECHO                                                     ~4
   13    11        ECHO                                                     '%3C%2Ftd%3E%3C%2Ftr%3E'
   14    12        ADD                                              ~5      !1, 10
         13        ASSIGN                                                   !1, ~5
    8    14    >   IS_SMALLER_OR_EQUAL                                      !1, 100
         15      > JMPNZ                                                    ~7, ->6
   16    16    >   ECHO                                                     '%3C%2Ftable%3E'
   17    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.44 ms | 1394 KiB | 13 Q