3v4l.org

run code in 300+ PHP versions simultaneously
<?php rendMultiplicationTable( 1, 12 ); function rendMultiplicationTable($start, $end) { echo '<table>'; echo '<tr><th>&nbsp;</th>'; for ($x = $start; $x <= $end; $x++) { echo '<th>' . $x . '</th>'; } echo "</tr>\n"; for ($y = $start; $y <= $end; $y++) { echo '<tr><th>' . $y . '</th>'; for ($z = $start; $z <= $end; $z++) { echo '<td>' . ($y * $z) . '</td>'; } echo "</tr>\n"; } echo '</table>'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kmPSm
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'rendMultiplicationTable'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              12
          3        DO_FCALL                                      0          
   18     4      > RETURN                                                   1

Function rendmultiplicationtable:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 15
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 20
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 15
Branch analysis from position: 31
Branch analysis from position: 15
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 20
Branch analysis from position: 27
Branch analysis from position: 20
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/kmPSm
function name:  rendMultiplicationTable
number of ops:  33
compiled vars:  !0 = $start, !1 = $end, !2 = $x, !3 = $y, !4 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ECHO                                                     '%3Ctable%3E'
    6     3        ECHO                                                     '%3Ctr%3E%3Cth%3E%26nbsp%3B%3C%2Fth%3E'
    7     4        ASSIGN                                                   !2, !0
          5      > JMP                                                      ->10
          6    >   CONCAT                                           ~6      '%3Cth%3E', !2
          7        CONCAT                                           ~7      ~6, '%3C%2Fth%3E'
          8        ECHO                                                     ~7
          9        PRE_INC                                                  !2
         10    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         11      > JMPNZ                                                    ~9, ->6
    8    12    >   ECHO                                                     '%3C%2Ftr%3E%0A'
    9    13        ASSIGN                                                   !3, !0
         14      > JMP                                                      ->29
   10    15    >   CONCAT                                           ~11     '%3Ctr%3E%3Cth%3E', !3
         16        CONCAT                                           ~12     ~11, '%3C%2Fth%3E'
         17        ECHO                                                     ~12
   11    18        ASSIGN                                                   !4, !0
         19      > JMP                                                      ->25
   12    20    >   MUL                                              ~14     !3, !4
         21        CONCAT                                           ~15     '%3Ctd%3E', ~14
         22        CONCAT                                           ~16     ~15, '%3C%2Ftd%3E'
         23        ECHO                                                     ~16
   11    24        PRE_INC                                                  !4
         25    >   IS_SMALLER_OR_EQUAL                                      !4, !1
         26      > JMPNZ                                                    ~18, ->20
   14    27    >   ECHO                                                     '%3C%2Ftr%3E%0A'
    9    28        PRE_INC                                                  !3
         29    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         30      > JMPNZ                                                    ~20, ->15
   16    31    >   ECHO                                                     '%3C%2Ftable%3E'
   17    32      > RETURN                                                   null

End of function rendmultiplicationtable

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.27 ms | 1403 KiB | 13 Q