3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>A Times Table Programme</title> <?PHP $times = 2; if (isset($_POST['Submit1'])) { $start = $_POST['txtStart']; $end = $_POST['txtEnd']; $times = $_POST['txtTimes']; for($start; $start <= $end; $start++) { $answer = $start * $times; print $start . " multiplied by " . $times . " = " . $answer . "<BR>"; } } ?> </head> <body> <FORM NAME = frmOne Method = "POST" Action = "timesTable.php"> Start Number: <INPUT TYPE = Text NAME = txtStart SIZE = 5 value ="1"> End Number: <INPUT TYPE = Text NAME = txtEnd SIZE = 5 value ="10"> Multiply By: <INPUT TYPE = Text NAME = txtTimes SIZE = 5 value = <?PHP print $times; ?> > <P> <INPUT TYPE = Submit Name = Submit1 VALUE = "Do Times Table"> <P> </FORM> </body> <html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 26
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 15
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 15
Branch analysis from position: 26
Branch analysis from position: 15
Branch analysis from position: 26
filename:       /in/kLmsE
function name:  (null)
number of ops:  30
compiled vars:  !0 = $times, !1 = $start, !2 = $end, !3 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EA+Times+Table+Programme%3C%2Ftitle%3E%0A%0A'
    6     1        ASSIGN                                                   !0, 2
    8     2        FETCH_IS                                         ~5      '_POST'
          3        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'Submit1'
          4      > JMPZ                                                     ~6, ->26
   10     5    >   FETCH_R                      global              ~7      '_POST'
          6        FETCH_DIM_R                                      ~8      ~7, 'txtStart'
          7        ASSIGN                                                   !1, ~8
   11     8        FETCH_R                      global              ~10     '_POST'
          9        FETCH_DIM_R                                      ~11     ~10, 'txtEnd'
         10        ASSIGN                                                   !2, ~11
   12    11        FETCH_R                      global              ~13     '_POST'
         12        FETCH_DIM_R                                      ~14     ~13, 'txtTimes'
         13        ASSIGN                                                   !0, ~14
   15    14      > JMP                                                      ->24
   16    15    >   MUL                                              ~16     !1, !0
         16        ASSIGN                                                   !3, ~16
   17    17        CONCAT                                           ~18     !1, '+multiplied+by+'
         18        CONCAT                                           ~19     ~18, !0
         19        CONCAT                                           ~20     ~19, '+%3D+'
         20        CONCAT                                           ~21     ~20, !3
         21        CONCAT                                           ~22     ~21, '%3CBR%3E'
         22        ECHO                                                     ~22
   15    23        PRE_INC                                                  !1
         24    >   IS_SMALLER_OR_EQUAL                                      !1, !2
         25      > JMPNZ                                                    ~24, ->15
   23    26    >   ECHO                                                     '%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%0A%0A%3CFORM+NAME+%3D+frmOne+Method+%3D+%22POST%22+Action+%3D+%22timesTable.php%22%3E%0A%0AStart+Number%3A+%3CINPUT+TYPE+%3D+Text+NAME++%3D+txtStart+SIZE+%3D+5+value+%3D%221%22%3E%0AEnd+Number%3A+%3CINPUT+TYPE+%3D+Text+NAME+%3D+txtEnd+SIZE+%3D+5+value+%3D%2210%22%3E%0AMultiply+By%3A+%3CINPUT+TYPE+%3D+Text+NAME+%3D+txtTimes+SIZE+%3D+5+value+%3D+'
   33    27        ECHO                                                     !0
         28        ECHO                                                     '+%3E%0A%3CP%3E%0A%3CINPUT+TYPE+%3D+Submit+Name+%3D+Submit1+VALUE+%3D+%22Do+Times+Table%22%3E%0A%3CP%3E%0A%0A%3C%2FFORM%3E%0A%3C%2Fbody%3E%0A%0A%3Chtml%3E'
   41    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.37 ms | 1395 KiB | 13 Q