3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_NOTICE); ?> <?php if($_GET['submit'] && $_GET['category'] && $_GET['Manufacture']) { //Check whether user presses submit button, enter month, date, year, and category //Ready to get all data needed $start_month= $_GET['month']; $start_date= $_GET['date']; $start_year= $_GET['year']; $year_mfg= $_GET['Manufacture']; $CY=date("jFy", strtotime("-3 Years")); $fromDate = date("jFy", strtotime("-3 Years")); $Cu=date('j-F-Y'); $I=$S-2; $S=date('Y'); $Q=$S-$year_mfg; if(!checkdate($start_month, $start_date, $start_year)){ //IS inputted data valid? $continue = "NO"; } else { $continue = "YES"; }; if($continue == "NO"){ if($Q<=1) { echo '<center>'; echo '<img src="images/IIN.PNG">'; echo "</br>"; echo '<a href="index.php"><img src="images/refresh1.png"></a>'; } else { echo'<center>'; echo '<img src="images/OOW.PNG">'; echo "</br>"; echo '<a href="index.php"><img src="images/refresh2.png"></a>'; }; } } if($continue == "YES"){ $category = $_GET['category']; echo $Cu; echo "<br />"; echo "<h1>Date of Purchase: "; echo $start_dmy = $start_date . "-" . $start_month. "-". $start_year; echo "<h1>Year of Manufacturing: "; echo $year_mfg; echo "<br />"; if($category == 0){ // if user selects "Not listed" then... echo "ohh, I'll check whether u fill all the blanks :) <br/>"; $len_int = $_GET['int']; if(!$len_int) { $len_int = 0; } } else { switch ($category) { case 1: // driving vroom vroom... { $date_modifier = "+2 year"; break; } case 2: // office licensing { $date_modifier = "-2 year"; break; } case 3: //tax certifications { $date_modifier = "+90 days"; } } //Guess this would be enough. for now... } $final_dmy = $start_dmy . $date_modifier; $final_dmy = strtotime ($final_dmy); echo "<br />"; // now we should combine it echo "Customer's Free Support Ends: "; echo $final_dmy = date("j-F-Y", $final_dmy); //finally,. converts the date back to the d F Y format.... e.g.: 08 April 2012 echo "</br>"; echo "</br>"; echo $Q; echo "</br>"; echo "</br>"; echo $Cu; echo "</br>"; echo $final_dmy; echo "</br>"; echo "</br>"; echo $Cu*2; echo "</br>"; echo $Cu-2; echo "<center>"; if ($final_dmy >= $Cu){ // if user selects "Not listed" then... echo $Cu; echo "</br>"; echo $final_dmy; echo 'Inn'; echo "</br>"; echo 'OOW'; echo "</br>"; }elseif($Q<=1){ echo $Cu; echo "</br>"; echo $final_dmy; echo '<img src="images/OOW.PNG">'; echo "</br>"; echo 'OOW'; echo "</br>"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 78
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 65
Branch analysis from position: 65
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 78
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 74
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
2 jumps found. (Code = 43) Position 1 = 80, Position 2 = 166
Branch analysis from position: 80
2 jumps found. (Code = 43) Position 1 = 97, Position 2 = 105
Branch analysis from position: 97
2 jumps found. (Code = 43) Position 1 = 103, Position 2 = 104
Branch analysis from position: 103
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
2 jumps found. (Code = 43) Position 1 = 149, Position 2 = 157
Branch analysis from position: 149
1 jumps found. (Code = 42) Position 1 = 166
Branch analysis from position: 166
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 157
2 jumps found. (Code = 43) Position 1 = 159, Position 2 = 166
Branch analysis from position: 159
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 166
Branch analysis from position: 104
Branch analysis from position: 105
2 jumps found. (Code = 44) Position 1 = 107, Position 2 = 112
Branch analysis from position: 107
2 jumps found. (Code = 44) Position 1 = 109, Position 2 = 114
Branch analysis from position: 109
2 jumps found. (Code = 44) Position 1 = 111, Position 2 = 116
Branch analysis from position: 111
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
Branch analysis from position: 116
2 jumps found. (Code = 43) Position 1 = 149, Position 2 = 157
Branch analysis from position: 149
Branch analysis from position: 157
Branch analysis from position: 114
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
Branch analysis from position: 112
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
Branch analysis from position: 166
Branch analysis from position: 74
2 jumps found. (Code = 43) Position 1 = 80, Position 2 = 166
Branch analysis from position: 80
Branch analysis from position: 166
Branch analysis from position: 78
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 78
Branch analysis from position: 67
Branch analysis from position: 78
Branch analysis from position: 78
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/PaevX
function name:  (null)
number of ops:  167
compiled vars:  !0 = $start_month, !1 = $start_date, !2 = $start_year, !3 = $year_mfg, !4 = $CY, !5 = $fromDate, !6 = $Cu, !7 = $I, !8 = $S, !9 = $Q, !10 = $continue, !11 = $category, !12 = $start_dmy, !13 = $len_int, !14 = $date_modifier, !15 = $final_dmy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32759
          2        DO_ICALL                                                 
    2     3        ECHO                                                     '+++++%0A++++'
    4     4        FETCH_R                      global              ~17     '_GET'
          5        FETCH_DIM_R                                      ~18     ~17, 'submit'
          6      > JMPZ_EX                                          ~18     ~18, ->10
          7    >   FETCH_R                      global              ~19     '_GET'
          8        FETCH_DIM_R                                      ~20     ~19, 'category'
          9        BOOL                                             ~18     ~20
         10    > > JMPZ_EX                                          ~18     ~18, ->14
         11    >   FETCH_R                      global              ~21     '_GET'
         12        FETCH_DIM_R                                      ~22     ~21, 'Manufacture'
         13        BOOL                                             ~18     ~22
         14    > > JMPZ                                                     ~18, ->78
    7    15    >   FETCH_R                      global              ~23     '_GET'
         16        FETCH_DIM_R                                      ~24     ~23, 'month'
         17        ASSIGN                                                   !0, ~24
    8    18        FETCH_R                      global              ~26     '_GET'
         19        FETCH_DIM_R                                      ~27     ~26, 'date'
         20        ASSIGN                                                   !1, ~27
    9    21        FETCH_R                      global              ~29     '_GET'
         22        FETCH_DIM_R                                      ~30     ~29, 'year'
         23        ASSIGN                                                   !2, ~30
   10    24        FETCH_R                      global              ~32     '_GET'
         25        FETCH_DIM_R                                      ~33     ~32, 'Manufacture'
         26        ASSIGN                                                   !3, ~33
   11    27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'jFy'
         29        INIT_FCALL                                               'strtotime'
         30        SEND_VAL                                                 '-3+Years'
         31        DO_ICALL                                         $35     
         32        SEND_VAR                                                 $35
         33        DO_ICALL                                         $36     
         34        ASSIGN                                                   !4, $36
   12    35        INIT_FCALL                                               'date'
         36        SEND_VAL                                                 'jFy'
         37        INIT_FCALL                                               'strtotime'
         38        SEND_VAL                                                 '-3+Years'
         39        DO_ICALL                                         $38     
         40        SEND_VAR                                                 $38
         41        DO_ICALL                                         $39     
         42        ASSIGN                                                   !5, $39
   13    43        INIT_FCALL                                               'date'
         44        SEND_VAL                                                 'j-F-Y'
         45        DO_ICALL                                         $41     
         46        ASSIGN                                                   !6, $41
   14    47        SUB                                              ~43     !8, 2
         48        ASSIGN                                                   !7, ~43
   15    49        INIT_FCALL                                               'date'
         50        SEND_VAL                                                 'Y'
         51        DO_ICALL                                         $45     
         52        ASSIGN                                                   !8, $45
   16    53        SUB                                              ~47     !8, !3
         54        ASSIGN                                                   !9, ~47
   17    55        INIT_FCALL                                               'checkdate'
         56        SEND_VAR                                                 !0
         57        SEND_VAR                                                 !1
         58        SEND_VAR                                                 !2
         59        DO_ICALL                                         $49     
         60        BOOL_NOT                                         ~50     $49
         61      > JMPZ                                                     ~50, ->64
   18    62    >   ASSIGN                                                   !10, 'NO'
         63      > JMP                                                      ->65
   21    64    >   ASSIGN                                                   !10, 'YES'
   24    65    >   IS_EQUAL                                                 !10, 'NO'
         66      > JMPZ                                                     ~53, ->78
   28    67    >   IS_SMALLER_OR_EQUAL                                      !9, 1
         68      > JMPZ                                                     ~54, ->74
   30    69    >   ECHO                                                     '%3Ccenter%3E'
   31    70        ECHO                                                     '%3Cimg+src%3D%22images%2FIIN.PNG%22%3E'
   32    71        ECHO                                                     '%3C%2Fbr%3E'
   34    72        ECHO                                                     '%3Ca+href%3D%22index.php%22%3E%3Cimg+src%3D%22images%2Frefresh1.png%22%3E%3C%2Fa%3E'
         73      > JMP                                                      ->78
   37    74    >   ECHO                                                     '%3Ccenter%3E'
   38    75        ECHO                                                     '%3Cimg+src%3D%22images%2FOOW.PNG%22%3E'
   39    76        ECHO                                                     '%3C%2Fbr%3E'
   41    77        ECHO                                                     '%3Ca+href%3D%22index.php%22%3E%3Cimg+src%3D%22images%2Frefresh2.png%22%3E%3C%2Fa%3E'
   49    78    >   IS_EQUAL                                                 !10, 'YES'
         79      > JMPZ                                                     ~55, ->166
   50    80    >   FETCH_R                      global              ~56     '_GET'
         81        FETCH_DIM_R                                      ~57     ~56, 'category'
         82        ASSIGN                                                   !11, ~57
   51    83        ECHO                                                     !6
   52    84        ECHO                                                     '%3Cbr+%2F%3E'
   53    85        ECHO                                                     '%3Ch1%3EDate+of+Purchase%3A+'
   54    86        CONCAT                                           ~59     !1, '-'
         87        CONCAT                                           ~60     ~59, !0
         88        CONCAT                                           ~61     ~60, '-'
         89        CONCAT                                           ~62     ~61, !2
         90        ASSIGN                                           ~63     !12, ~62
         91        ECHO                                                     ~63
   55    92        ECHO                                                     '%3Ch1%3EYear+of+Manufacturing%3A+'
   56    93        ECHO                                                     !3
   57    94        ECHO                                                     '%3Cbr+%2F%3E'
   58    95        IS_EQUAL                                                 !11, 0
         96      > JMPZ                                                     ~64, ->105
   59    97    >   ECHO                                                     'ohh%2C+I%27ll+check+whether+u+fill+all+the+blanks+%3A%29+%3Cbr%2F%3E'
   60    98        FETCH_R                      global              ~65     '_GET'
         99        FETCH_DIM_R                                      ~66     ~65, 'int'
        100        ASSIGN                                                   !13, ~66
   62   101        BOOL_NOT                                         ~68     !13
        102      > JMPZ                                                     ~68, ->104
   63   103    >   ASSIGN                                                   !13, 0
        104    > > JMP                                                      ->117
   69   105    >   IS_EQUAL                                                 !11, 1
        106      > JMPNZ                                                    ~70, ->112
   74   107    >   IS_EQUAL                                                 !11, 2
        108      > JMPNZ                                                    ~70, ->114
   79   109    >   IS_EQUAL                                                 !11, 3
        110      > JMPNZ                                                    ~70, ->116
        111    > > JMP                                                      ->117
   71   112    >   ASSIGN                                                   !14, '%2B2+year'
   72   113      > JMP                                                      ->117
   76   114    >   ASSIGN                                                   !14, '-2+year'
   77   115      > JMP                                                      ->117
   81   116    >   ASSIGN                                                   !14, '%2B90+days'
   92   117    >   CONCAT                                           ~74     !12, !14
        118        ASSIGN                                                   !15, ~74
   93   119        INIT_FCALL                                               'strtotime'
        120        SEND_VAR                                                 !15
        121        DO_ICALL                                         $76     
        122        ASSIGN                                                   !15, $76
   94   123        ECHO                                                     '%3Cbr+%2F%3E'
   96   124        ECHO                                                     'Customer%27s+Free+Support+Ends%3A+'
   97   125        INIT_FCALL                                               'date'
        126        SEND_VAL                                                 'j-F-Y'
        127        SEND_VAR                                                 !15
        128        DO_ICALL                                         $78     
        129        ASSIGN                                           ~79     !15, $78
        130        ECHO                                                     ~79
   99   131        ECHO                                                     '%3C%2Fbr%3E'
        132        ECHO                                                     '%3C%2Fbr%3E'
  100   133        ECHO                                                     !9
  102   134        ECHO                                                     '%3C%2Fbr%3E'
        135        ECHO                                                     '%3C%2Fbr%3E'
  103   136        ECHO                                                     !6
  104   137        ECHO                                                     '%3C%2Fbr%3E'
  105   138        ECHO                                                     !15
  106   139        ECHO                                                     '%3C%2Fbr%3E'
  108   140        ECHO                                                     '%3C%2Fbr%3E'
  109   141        MUL                                              ~80     !6, 2
        142        ECHO                                                     ~80
  110   143        ECHO                                                     '%3C%2Fbr%3E'
  111   144        SUB                                              ~81     !6, 2
        145        ECHO                                                     ~81
  112   146        ECHO                                                     '%3Ccenter%3E'
  113   147        IS_SMALLER_OR_EQUAL                                      !6, !15
        148      > JMPZ                                                     ~82, ->157
  115   149    >   ECHO                                                     !6
  116   150        ECHO                                                     '%3C%2Fbr%3E'
  117   151        ECHO                                                     !15
  118   152        ECHO                                                     'Inn'
  119   153        ECHO                                                     '%3C%2Fbr%3E'
  121   154        ECHO                                                     'OOW'
  124   155        ECHO                                                     '%3C%2Fbr%3E'
        156      > JMP                                                      ->166
  126   157    >   IS_SMALLER_OR_EQUAL                                      !9, 1
        158      > JMPZ                                                     ~83, ->166
  127   159    >   ECHO                                                     !6
  128   160        ECHO                                                     '%3C%2Fbr%3E'
  129   161        ECHO                                                     !15
  131   162        ECHO                                                     '%3Cimg+src%3D%22images%2FOOW.PNG%22%3E'
  132   163        ECHO                                                     '%3C%2Fbr%3E'
  134   164        ECHO                                                     'OOW'
  137   165        ECHO                                                     '%3C%2Fbr%3E'
  145   166    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.16 ms | 1416 KiB | 21 Q