3v4l.org

run code in 300+ PHP versions simultaneously
<div id="main"> <h2>Add Page</h2> <form action="calendar.php" method="POST"> <fieldset> <legend>Add Page</legend> <ol> <li> Date: <input type="text" name="date" value="date" id="date" /> </li> </ol> <input type="submit" name="submit" value="Submit" /> <p> <a href="index.php">Cancel</a> <?php if (isset($_POST['submit'])) { $date = $_POST['date']; list($day, $month, $year) = explode("/", $data); $daysinmonth=cal_days_in_month(CAL_GREGORIAN,$month,$year); $julianDayCount=cal_to_jd(CAL_GREGORIAN,1,$month,$year); $dayOfWeek=jddayofweek($julianDayCount,1); $empties = $dayOfWeek - 1; $fullies = $daysinmonth; $z=0; $FieldsNo; echo "<table><tbody><tr>"; for ($e = 1; $e <= $empties; $e++) { echo "<td>WW</td> "; $FieldsNo++; } for ($f = 1; $f <= $fullies; $f++) { if(($FieldsNo == 7)||($FieldsNo == 14)||($FieldsNo == 21)||($FieldsNo == 28)||($FieldsNo == 35)||($FieldsNo == 42)) { echo "</tr><tr>"; echo "<td>FF</td>"; $FieldsNo++; } else { echo "<td>FF</td>"; $FieldsNo++; } } echo "</tr></tbody></table>"; } ?> </p> </fieldset> </form> </div> </div> <!-- End of outer-wrapper which opens in header.php -->
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 79
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 45
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 52
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
2 jumps found. (Code = 47) Position 1 = 54, Position 2 = 56
Branch analysis from position: 54
2 jumps found. (Code = 47) Position 1 = 57, Position 2 = 59
Branch analysis from position: 57
2 jumps found. (Code = 47) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
2 jumps found. (Code = 47) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
2 jumps found. (Code = 47) Position 1 = 66, Position 2 = 68
Branch analysis from position: 66
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 73
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 52
Branch analysis from position: 78
Branch analysis from position: 52
Branch analysis from position: 73
2 jumps found. (Code = 44) Position 1 = 78, Position 2 = 52
Branch analysis from position: 78
Branch analysis from position: 52
Branch analysis from position: 68
Branch analysis from position: 65
Branch analysis from position: 62
Branch analysis from position: 59
Branch analysis from position: 56
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 50, Position 2 = 45
Branch analysis from position: 50
Branch analysis from position: 45
Branch analysis from position: 79
filename:       /in/oMbEi
function name:  (null)
number of ops:  81
compiled vars:  !0 = $date, !1 = $data, !2 = $day, !3 = $month, !4 = $year, !5 = $daysinmonth, !6 = $julianDayCount, !7 = $dayOfWeek, !8 = $empties, !9 = $fullies, !10 = $z, !11 = $FieldsNo, !12 = $e, !13 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cdiv+id%3D%22main%22%3E%0A++++%3Ch2%3EAdd+Page%3C%2Fh2%3E%0A++++++++%3Cform+action%3D%22calendar.php%22+method%3D%22POST%22%3E%0A++++++++++++%3Cfieldset%3E%0A++++++++++++%3Clegend%3EAdd+Page%3C%2Flegend%3E%0A++++++++++++%3Col%3E%0A++++++++++++++++%3Cli%3E%0A++++++++++++++++++++Date%3A%0A++++++++++++++++++++%3Cinput+type%3D%22text%22+name%3D%22date%22+value%3D%22date%22+id%3D%22date%22+%2F%3E%0A++++++++++++++++%3C%2Fli%3E%0A++++++++++++%3C%2Fol%3E%0A++++++++++++%3Cinput+type%3D%22submit%22+name%3D%22submit%22+value%3D%22Submit%22+%2F%3E%0A++++++++++++%3Cp%3E%0A++++++++++++++++%3Ca+href%3D%22index.php%22%3ECancel%3C%2Fa%3E%0A++++++++++++++++'
   16     1        FETCH_IS                                         ~14     '_POST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~14, 'submit'
          3      > JMPZ                                                     ~15, ->79
   18     4    >   FETCH_R                      global              ~16     '_POST'
          5        FETCH_DIM_R                                      ~17     ~16, 'date'
          6        ASSIGN                                                   !0, ~17
   19     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2F'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $19     
         11        FETCH_LIST_R                                     $20     $19, 0
         12        ASSIGN                                                   !2, $20
         13        FETCH_LIST_R                                     $22     $19, 1
         14        ASSIGN                                                   !3, $22
         15        FETCH_LIST_R                                     $24     $19, 2
         16        ASSIGN                                                   !4, $24
         17        FREE                                                     $19
   20    18        INIT_FCALL_BY_NAME                                       'cal_days_in_month'
         19        FETCH_CONSTANT                                   ~26     'CAL_GREGORIAN'
         20        SEND_VAL_EX                                              ~26
         21        SEND_VAR_EX                                              !3
         22        SEND_VAR_EX                                              !4
         23        DO_FCALL                                      0  $27     
         24        ASSIGN                                                   !5, $27
   21    25        INIT_FCALL_BY_NAME                                       'cal_to_jd'
         26        FETCH_CONSTANT                                   ~29     'CAL_GREGORIAN'
         27        SEND_VAL_EX                                              ~29
         28        SEND_VAL_EX                                              1
         29        SEND_VAR_EX                                              !3
         30        SEND_VAR_EX                                              !4
         31        DO_FCALL                                      0  $30     
         32        ASSIGN                                                   !6, $30
   22    33        INIT_FCALL_BY_NAME                                       'jddayofweek'
         34        SEND_VAR_EX                                              !6
         35        SEND_VAL_EX                                              1
         36        DO_FCALL                                      0  $32     
         37        ASSIGN                                                   !7, $32
   23    38        SUB                                              ~34     !7, 1
         39        ASSIGN                                                   !8, ~34
   27    40        ASSIGN                                                   !9, !5
   28    41        ASSIGN                                                   !10, 0
   30    42        ECHO                                                     '%3Ctable%3E%3Ctbody%3E%3Ctr%3E'
   32    43        ASSIGN                                                   !12, 1
         44      > JMP                                                      ->48
   34    45    >   ECHO                                                     '%3Ctd%3EWW%3C%2Ftd%3E+'
   35    46        PRE_INC                                                  !11
   32    47        PRE_INC                                                  !12
         48    >   IS_SMALLER_OR_EQUAL                                      !12, !8
         49      > JMPNZ                                                    ~41, ->45
   37    50    >   ASSIGN                                                   !13, 1
         51      > JMP                                                      ->76
   39    52    >   IS_EQUAL                                         ~43     !11, 7
         53      > JMPNZ_EX                                         ~43     ~43, ->56
         54    >   IS_EQUAL                                         ~44     !11, 14
         55        BOOL                                             ~43     ~44
         56    > > JMPNZ_EX                                         ~43     ~43, ->59
         57    >   IS_EQUAL                                         ~45     !11, 21
         58        BOOL                                             ~43     ~45
         59    > > JMPNZ_EX                                         ~43     ~43, ->62
         60    >   IS_EQUAL                                         ~46     !11, 28
         61        BOOL                                             ~43     ~46
         62    > > JMPNZ_EX                                         ~43     ~43, ->65
         63    >   IS_EQUAL                                         ~47     !11, 35
         64        BOOL                                             ~43     ~47
         65    > > JMPNZ_EX                                         ~43     ~43, ->68
         66    >   IS_EQUAL                                         ~48     !11, 42
         67        BOOL                                             ~43     ~48
         68    > > JMPZ                                                     ~43, ->73
   41    69    >   ECHO                                                     '%3C%2Ftr%3E%3Ctr%3E'
   42    70        ECHO                                                     '%3Ctd%3EFF%3C%2Ftd%3E'
   43    71        PRE_INC                                                  !11
         72      > JMP                                                      ->75
   46    73    >   ECHO                                                     '%3Ctd%3EFF%3C%2Ftd%3E'
   47    74        PRE_INC                                                  !11
   37    75    >   PRE_INC                                                  !13
         76    >   IS_SMALLER_OR_EQUAL                                      !13, !9
         77      > JMPNZ                                                    ~52, ->52
   52    78    >   ECHO                                                     '%3C%2Ftr%3E%3C%2Ftbody%3E%3C%2Ftable%3E'
   57    79    >   ECHO                                                     '++++++++++++%3C%2Fp%3E%0A++++++++%3C%2Ffieldset%3E%0A++++%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A%3C%2Fdiv%3E+%3C%21--+End+of+outer-wrapper+which+opens+in+header.php+--%3E'
   61    80      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.64 ms | 1404 KiB | 15 Q