3v4l.org

run code in 300+ PHP versions simultaneously
<? ob_start(); include ("access.inc"); $table_name = "mem_auth"; $connection = mysql_connect($host,$user,$password); $db = mysql_select_db($db_name, $connection) or die("Couldn't select databasea."); $sql = "SELECT * FROM $table_name WHERE roster = \"$Mroster\" AND pass_word = (\"$Mpass_word\") ";$result = mysql_query($sql) or die ("Can't execute query."); $num = mysql_numrows($result); while ($row = mysql_fetch_array($result)) { $rostera = $row['roster']; } if ($num == 0) { echo "Your information does not match that which is on file, please try again" ; exit; } else { session_start(); session_register('valid'); $valid = "yes"; } //$datea = (date); $dttm = (date ("Y-m-d H:i:s")); $today = (date ("M j,Y")); $todayB = (date ("Y-m-d")); //$connection = mysql_connect(tri-ess-org,sunrise_sunrise,Xtrem6fTy); $connection = mysql_connect($host,$user,$password); $db = @mysql_select_db($db_name, $connection) or die("Couldn't select databaseb."); $ip = $REMOTE_ADDR; $sql = "INSERT INTO member_login (login_Roster, login_Time, ip) VALUES ('$rostera','$dttm','$ip')"; mysql_query($sql); $sql = "SELECT * FROM member WHERE roster LIKE '$Mroster' "; $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); while ($row = mysql_fetch_array($result)) { $first = $row['first']; $rostera = $row['roster']; $doe = $row['doe']; } echo "Today is $today"; ob_end_flush(); ?> <HTML> <HEAD> <TITLE>Directory Search</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style3 { font-size: 12px; } --> </style> </HEAD> <BODY background="../images/backnice.gif"><body background="backgrnd.jpg"> <p align="center"><IMG SRC="/images/2002b50.gif" width="158" height="110"><br> <br> <b><font size="5"> Welcome <? echo "$first"; ?> to the member only area.</font></b><br> <br> <? $viewer = getenv("HTTP_USER_AGENT"); $browser = "an unidentified browser"; if( preg_match( "/MSIE/i", "$viewer")) { $browser = "Internet Explorer"; } else if (preg_match( "/Netscape/i", "$viewer")) { $browser = "Netscape"; } else if (preg_match( "/Opera/i", "$viewer")) { $browser = "Opera"; } else if (preg_match( "/Firefox/i", "$viewer")) { $browser = "Firefox"; } echo("<font size=4><strong>For your information:<br><br>"); echo("<font size=4><strong> The browser you are using is $browser </strong></font><br><br>"); $dates = (date ("M-d-Y")); $date_mdy = (date ("Y-m-d")); if ($doe > 2020-01-01) { echo "You have a lifetime membership-thank you"; } elseif ($doe > $date_mdy) { echo("<font size=4><strong> Your membership expires on "); echo(date("l F j, Y",strtotime("$doe"))) ; } else { echo "Your membership expired on "; echo(date("l F j, Y",strtotime ("$doe"))); echo ", please renew...Thank you"; exit; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 38
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 50
Branch analysis from position: 47
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 50
2 jumps found. (Code = 47) Position 1 = 82, Position 2 = 84
Branch analysis from position: 82
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 84
2 jumps found. (Code = 47) Position 1 = 108, Position 2 = 110
Branch analysis from position: 108
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 110
1 jumps found. (Code = 42) Position 1 = 117
Branch analysis from position: 117
2 jumps found. (Code = 44) Position 1 = 122, Position 2 = 111
Branch analysis from position: 122
2 jumps found. (Code = 43) Position 1 = 142, Position 2 = 144
Branch analysis from position: 142
1 jumps found. (Code = 42) Position 1 = 167
Branch analysis from position: 167
2 jumps found. (Code = 43) Position 1 = 182, Position 2 = 184
Branch analysis from position: 182
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 184
2 jumps found. (Code = 43) Position 1 = 186, Position 2 = 197
Branch analysis from position: 186
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
Branch analysis from position: 197
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 144
2 jumps found. (Code = 43) Position 1 = 150, Position 2 = 152
Branch analysis from position: 150
1 jumps found. (Code = 42) Position 1 = 167
Branch analysis from position: 167
Branch analysis from position: 152
2 jumps found. (Code = 43) Position 1 = 158, Position 2 = 160
Branch analysis from position: 158
1 jumps found. (Code = 42) Position 1 = 167
Branch analysis from position: 167
Branch analysis from position: 160
2 jumps found. (Code = 43) Position 1 = 166, Position 2 = 167
Branch analysis from position: 166
2 jumps found. (Code = 43) Position 1 = 182, Position 2 = 184
Branch analysis from position: 182
Branch analysis from position: 184
Branch analysis from position: 167
Branch analysis from position: 111
2 jumps found. (Code = 44) Position 1 = 122, Position 2 = 111
Branch analysis from position: 122
Branch analysis from position: 111
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 38
Branch analysis from position: 45
Branch analysis from position: 38
filename:       /in/tVKRS
function name:  (null)
number of ops:  210
compiled vars:  !0 = $table_name, !1 = $connection, !2 = $host, !3 = $user, !4 = $password, !5 = $db, !6 = $db_name, !7 = $sql, !8 = $Mroster, !9 = $Mpass_word, !10 = $result, !11 = $num, !12 = $rostera, !13 = $row, !14 = $valid, !15 = $dttm, !16 = $today, !17 = $todayB, !18 = $ip, !19 = $REMOTE_ADDR, !20 = $first, !21 = $doe, !22 = $viewer, !23 = $browser, !24 = $dates, !25 = $date_mdy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    3     2        INCLUDE_OR_EVAL                                          'access.inc', INCLUDE
    4     3        ASSIGN                                                   !0, 'mem_auth'
    7     4        INIT_FCALL_BY_NAME                                       'mysql_connect'
          5        SEND_VAR_EX                                              !2
          6        SEND_VAR_EX                                              !3
          7        SEND_VAR_EX                                              !4
          8        DO_FCALL                                      0  $29     
          9        ASSIGN                                                   !1, $29
    8    10        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         11        SEND_VAR_EX                                              !6
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $31     
         14        ASSIGN                                           ~32     !5, $31
         15      > JMPNZ_EX                                         ~32     ~32, ->18
    9    16    > > EXIT                                                     'Couldn%27t+select+databasea.'
         17*       BOOL                                             ~32     <true>
   11    18    >   ROPE_INIT                                     7  ~34     'SELECT+%2A+FROM+'
         19        ROPE_ADD                                      1  ~34     ~34, !0
         20        ROPE_ADD                                      2  ~34     ~34, '%0A%09WHERE+roster+%3D+%22'
   12    21        ROPE_ADD                                      3  ~34     ~34, !8
         22        ROPE_ADD                                      4  ~34     ~34, '%22+AND+pass_word+%3D+%28%22'
         23        ROPE_ADD                                      5  ~34     ~34, !9
         24        ROPE_END                                      6  ~33     ~34, '%22%29%0A%09'
   11    25        ASSIGN                                                   !7, ~33
   13    26        INIT_FCALL_BY_NAME                                       'mysql_query'
         27        SEND_VAR_EX                                              !7
         28        DO_FCALL                                      0  $39     
         29        ASSIGN                                           ~40     !10, $39
         30      > JMPNZ_EX                                         ~40     ~40, ->33
   14    31    > > EXIT                                                     'Can%27t+execute+query.'
         32*       BOOL                                             ~40     <true>
   16    33    >   INIT_FCALL_BY_NAME                                       'mysql_numrows'
         34        SEND_VAR_EX                                              !10
         35        DO_FCALL                                      0  $41     
         36        ASSIGN                                                   !11, $41
   18    37      > JMP                                                      ->40
   20    38    >   FETCH_DIM_R                                      ~43     !13, 'roster'
         39        ASSIGN                                                   !12, ~43
   18    40    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         41        SEND_VAR_EX                                              !10
         42        DO_FCALL                                      0  $45     
         43        ASSIGN                                           ~46     !13, $45
         44      > JMPNZ                                                    ~46, ->38
   25    45    >   IS_EQUAL                                                 !11, 0
         46      > JMPZ                                                     ~47, ->50
   26    47    >   ECHO                                                     'Your+information+does+not+match+that+which+is+on+file%2C+please+try+again'
   27    48      > EXIT                                                     
         49*       JMP                                                      ->56
   30    50    >   INIT_FCALL                                               'session_start'
         51        DO_ICALL                                                 
   32    52        INIT_FCALL_BY_NAME                                       'session_register'
         53        SEND_VAL_EX                                              'valid'
         54        DO_FCALL                                      0          
   33    55        ASSIGN                                                   !14, 'yes'
   37    56        INIT_FCALL                                               'date'
         57        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         58        DO_ICALL                                         $51     
         59        ASSIGN                                                   !15, $51
   38    60        INIT_FCALL                                               'date'
         61        SEND_VAL                                                 'M+j%2CY'
         62        DO_ICALL                                         $53     
         63        ASSIGN                                                   !16, $53
   39    64        INIT_FCALL                                               'date'
         65        SEND_VAL                                                 'Y-m-d'
         66        DO_ICALL                                         $55     
         67        ASSIGN                                                   !17, $55
   43    68        INIT_FCALL_BY_NAME                                       'mysql_connect'
         69        SEND_VAR_EX                                              !2
         70        SEND_VAR_EX                                              !3
         71        SEND_VAR_EX                                              !4
         72        DO_FCALL                                      0  $57     
         73        ASSIGN                                                   !1, $57
   45    74        BEGIN_SILENCE                                    ~59     
         75        INIT_FCALL_BY_NAME                                       'mysql_select_db'
         76        SEND_VAR_EX                                              !6
         77        SEND_VAR_EX                                              !1
         78        DO_FCALL                                      0  $60     
         79        END_SILENCE                                              ~59
         80        ASSIGN                                           ~61     !5, $60
         81      > JMPNZ_EX                                         ~61     ~61, ->84
         82    > > EXIT                                                     'Couldn%27t+select+databaseb.'
         83*       BOOL                                             ~61     <true>
   48    84    >   ASSIGN                                                   !18, !19
   52    85        ROPE_INIT                                     7  ~64     'INSERT+INTO+member_login+%28login_Roster%2C+login_Time%2C+ip%29+VALUES%0A%28%27'
   53    86        ROPE_ADD                                      1  ~64     ~64, !12
         87        ROPE_ADD                                      2  ~64     ~64, '%27%2C%27'
         88        ROPE_ADD                                      3  ~64     ~64, !15
         89        ROPE_ADD                                      4  ~64     ~64, '%27%2C%27'
         90        ROPE_ADD                                      5  ~64     ~64, !18
         91        ROPE_END                                      6  ~63     ~64, '%27%29'
   52    92        ASSIGN                                                   !7, ~63
   55    93        INIT_FCALL_BY_NAME                                       'mysql_query'
         94        SEND_VAR_EX                                              !7
         95        DO_FCALL                                      0          
   57    96        ROPE_INIT                                     3  ~71     'SELECT+%2A%0A%09%09FROM+member%0A%09%09WHERE+roster+LIKE+%27'
   59    97        ROPE_ADD                                      1  ~71     ~71, !8
         98        ROPE_END                                      2  ~70     ~71, '%27%0A%09%09'
   57    99        ASSIGN                                                   !7, ~70
   62   100        BEGIN_SILENCE                                    ~74     
        101        INIT_FCALL_BY_NAME                                       'mysql_query'
        102        SEND_VAR_EX                                              !7
        103        SEND_VAR_EX                                              !1
        104        DO_FCALL                                      0  $75     
        105        END_SILENCE                                              ~74
        106        ASSIGN                                           ~76     !10, $75
        107      > JMPNZ_EX                                         ~76     ~76, ->110
        108    > > EXIT                                                     'Couldn%27t+execute+query.'
        109*       BOOL                                             ~76     <true>
   65   110    > > JMP                                                      ->117
   66   111    >   FETCH_DIM_R                                      ~77     !13, 'first'
        112        ASSIGN                                                   !20, ~77
   67   113        FETCH_DIM_R                                      ~79     !13, 'roster'
        114        ASSIGN                                                   !12, ~79
   68   115        FETCH_DIM_R                                      ~81     !13, 'doe'
        116        ASSIGN                                                   !21, ~81
   65   117    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
        118        SEND_VAR_EX                                              !10
        119        DO_FCALL                                      0  $83     
        120        ASSIGN                                           ~84     !13, $83
        121      > JMPNZ                                                    ~84, ->111
   71   122    >   NOP                                                      
        123        FAST_CONCAT                                      ~85     'Today+is+', !16
        124        ECHO                                                     ~85
   73   125        INIT_FCALL                                               'ob_end_flush'
        126        DO_ICALL                                                 
   75   127        ECHO                                                     '%0A%0A%0A%0A%0A%3CHTML%3E%0A%3CHEAD%3E%0A%3CTITLE%3EDirectory+Search%3C%2FTITLE%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22%3E%0A%3Cstyle+type%3D%22text%2Fcss%22%3E%0A%3C%21--%0A.style3+%7B%0A%09font-size%3A+12px%3B%0A%7D%0A--%3E%0A%3C%2Fstyle%3E%0A%3C%2FHEAD%3E%0A%3CBODY+background%3D%22..%2Fimages%2Fbacknice.gif%22%3E%3Cbody+background%3D%22backgrnd.jpg%22%3E%0A%3Cp+align%3D%22center%22%3E%3CIMG+SRC%3D%22%2Fimages%2F2002b50.gif%22+width%3D%22158%22+height%3D%22110%22%3E%3Cbr%3E%0A++%3Cbr%3E%0A++%3Cb%3E%3Cfont+size%3D%225%22%3E+Welcome+'
   95   128        CAST                                          6  ~87     !20
        129        ECHO                                                     ~87
        130        ECHO                                                     '+to+the+member+only+area.%3C%2Ffont%3E%3C%2Fb%3E%3Cbr%3E%0A++%3Cbr%3E%0A'
   97   131        INIT_FCALL                                               'getenv'
        132        SEND_VAL                                                 'HTTP_USER_AGENT'
        133        DO_ICALL                                         $88     
        134        ASSIGN                                                   !22, $88
   99   135        ASSIGN                                                   !23, 'an+unidentified+browser'
  100   136        INIT_FCALL                                               'preg_match'
        137        SEND_VAL                                                 '%2FMSIE%2Fi'
        138        CAST                                          6  ~91     !22
        139        SEND_VAL                                                 ~91
        140        DO_ICALL                                         $92     
        141      > JMPZ                                                     $92, ->144
  101   142    >   ASSIGN                                                   !23, 'Internet+Explorer'
        143      > JMP                                                      ->167
  102   144    >   INIT_FCALL                                               'preg_match'
        145        SEND_VAL                                                 '%2FNetscape%2Fi'
        146        CAST                                          6  ~94     !22
        147        SEND_VAL                                                 ~94
        148        DO_ICALL                                         $95     
        149      > JMPZ                                                     $95, ->152
  103   150    >   ASSIGN                                                   !23, 'Netscape'
        151      > JMP                                                      ->167
  104   152    >   INIT_FCALL                                               'preg_match'
        153        SEND_VAL                                                 '%2FOpera%2Fi'
        154        CAST                                          6  ~97     !22
        155        SEND_VAL                                                 ~97
        156        DO_ICALL                                         $98     
        157      > JMPZ                                                     $98, ->160
  105   158    >   ASSIGN                                                   !23, 'Opera'
        159      > JMP                                                      ->167
  106   160    >   INIT_FCALL                                               'preg_match'
        161        SEND_VAL                                                 '%2FFirefox%2Fi'
        162        CAST                                          6  ~100    !22
        163        SEND_VAL                                                 ~100
        164        DO_ICALL                                         $101    
        165      > JMPZ                                                     $101, ->167
  107   166    >   ASSIGN                                                   !23, 'Firefox'
  108   167    >   ECHO                                                     '%3Cfont+size%3D4%3E%3Cstrong%3EFor+your+information%3A%3Cbr%3E%3Cbr%3E'
  109   168        ROPE_INIT                                     3  ~104    '%3Cfont+size%3D4%3E%3Cstrong%3E+The+browser+you+are+using+is+'
        169        ROPE_ADD                                      1  ~104    ~104, !23
        170        ROPE_END                                      2  ~103    ~104, '+%3C%2Fstrong%3E%3C%2Ffont%3E%3Cbr%3E%3Cbr%3E'
        171        ECHO                                                     ~103
  110   172        INIT_FCALL                                               'date'
        173        SEND_VAL                                                 'M-d-Y'
        174        DO_ICALL                                         $106    
        175        ASSIGN                                                   !24, $106
  111   176        INIT_FCALL                                               'date'
        177        SEND_VAL                                                 'Y-m-d'
        178        DO_ICALL                                         $108    
        179        ASSIGN                                                   !25, $108
  113   180        IS_SMALLER                                               2018, !21
        181      > JMPZ                                                     ~110, ->184
  115   182    >   ECHO                                                     'You+have+a+lifetime+membership-thank+you'
        183      > JMP                                                      ->209
  117   184    >   IS_SMALLER                                               !25, !21
        185      > JMPZ                                                     ~111, ->197
  120   186    >   ECHO                                                     '%3Cfont+size%3D4%3E%3Cstrong%3E+Your+membership+expires+on+'
  121   187        INIT_FCALL                                               'date'
        188        SEND_VAL                                                 'l+F+j%2C+Y'
        189        INIT_FCALL                                               'strtotime'
        190        CAST                                          6  ~112    !21
        191        SEND_VAL                                                 ~112
        192        DO_ICALL                                         $113    
        193        SEND_VAR                                                 $113
        194        DO_ICALL                                         $114    
        195        ECHO                                                     $114
        196      > JMP                                                      ->209
  125   197    >   ECHO                                                     'Your+membership+expired+on+'
  126   198        INIT_FCALL                                               'date'
        199        SEND_VAL                                                 'l+F+j%2C+Y'
        200        INIT_FCALL                                               'strtotime'
        201        CAST                                          6  ~115    !21
        202        SEND_VAL                                                 ~115
        203        DO_ICALL                                         $116    
        204        SEND_VAR                                                 $116
        205        DO_ICALL                                         $117    
        206        ECHO                                                     $117
  127   207        ECHO                                                     '%2C+please+renew...Thank+you'
  128   208      > EXIT                                                     
  131   209    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.03 ms | 1416 KiB | 27 Q