3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = array( 'host' => 'mysql.hostinger.nl', 'user' => 'u126267875_pepe', 'pass' => 'com-puter', 'dbname' => 'u126267875_medal' ); if (!mysql_connect($db['host'], $db['user'], $db['pass'])){ $_SESSION['foutcode'] = 'foutcode 002'; header('location: http://medalwars.url.ph/'); exit(); }elseif (!mysql_select_db($db['dbname'])){ $_SESSION['foutcode'] = 'foutcode 003'; header("location: $before"); exit(); } if($before == 'http://medalwars.url.ph/create_account/'){ if(empty($username) AND empty($password) AND empty($password2) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 012'; header("location: $before"); exit(); }elseif(empty($username) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 013'; header("location: $before"); exit(); }elseif(empty($password) AND empty($email)){ $_SESSION['foutcode'] = 'foutcode 014'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); }elseif(empty($password2)){ $_SESSION['foutcode'] = 'foutcode 015'; header("location: $before"); exit(); }elseif(empty($email)){ $_SESSION['foutcode'] = 'foutcode 016'; header("location: $before"); exit(); }elseif($password <> $password2){ $_SESSION['foutcode'] = 'foutcode 017'; header("location: $before"); exit(); }elseif(strlen($username < 6)){ $_SESSION['foutcode'] = 'foutcode 018'; header("location: $before"); exit(); }elseif(strlen($password < 8)){ $_SESSION['foutcode'] = 'foutcode 019'; header("location: $before"); exit(); } }elseif($before == 'http://medalwars.url.ph/'){ if(empty($username) AND empty($password)){ $_SESSION['foutcode'] = 'foutcode 007'; header("location: $before"); exit(); }elseif(empty($username)){ $_SESSION['foutcode'] = 'foutcode 005'; header("location: $before"); exit(); }elseif(empty($password)){ $_SESSION['foutcode'] = 'foutcode 006'; header("location: $before"); exit(); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 38
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 192
Branch analysis from position: 40
2 jumps found. (Code = 46) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
2 jumps found. (Code = 46) Position 1 = 45, Position 2 = 47
Branch analysis from position: 45
2 jumps found. (Code = 46) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 61
Branch analysis from position: 51
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 61
2 jumps found. (Code = 46) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 76
Branch analysis from position: 66
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 76
2 jumps found. (Code = 46) Position 1 = 78, Position 2 = 80
Branch analysis from position: 78
2 jumps found. (Code = 43) Position 1 = 81, Position 2 = 91
Branch analysis from position: 81
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 91
2 jumps found. (Code = 46) Position 1 = 93, Position 2 = 95
Branch analysis from position: 93
2 jumps found. (Code = 43) Position 1 = 96, Position 2 = 106
Branch analysis from position: 96
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 106
2 jumps found. (Code = 43) Position 1 = 108, Position 2 = 118
Branch analysis from position: 108
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 118
2 jumps found. (Code = 43) Position 1 = 120, Position 2 = 130
Branch analysis from position: 120
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 130
2 jumps found. (Code = 43) Position 1 = 132, Position 2 = 142
Branch analysis from position: 132
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 142
2 jumps found. (Code = 43) Position 1 = 144, Position 2 = 154
Branch analysis from position: 144
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 154
2 jumps found. (Code = 43) Position 1 = 156, Position 2 = 166
Branch analysis from position: 156
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 166
2 jumps found. (Code = 43) Position 1 = 169, Position 2 = 179
Branch analysis from position: 169
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 179
2 jumps found. (Code = 43) Position 1 = 182, Position 2 = 191
Branch analysis from position: 182
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 191
1 jumps found. (Code = 42) Position 1 = 232
Branch analysis from position: 232
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 95
Branch analysis from position: 80
Branch analysis from position: 65
Branch analysis from position: 50
Branch analysis from position: 47
Branch analysis from position: 44
Branch analysis from position: 192
2 jumps found. (Code = 43) Position 1 = 194, Position 2 = 232
Branch analysis from position: 194
2 jumps found. (Code = 46) Position 1 = 196, Position 2 = 198
Branch analysis from position: 196
2 jumps found. (Code = 43) Position 1 = 199, Position 2 = 209
Branch analysis from position: 199
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 209
2 jumps found. (Code = 43) Position 1 = 211, Position 2 = 221
Branch analysis from position: 211
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 221
2 jumps found. (Code = 43) Position 1 = 223, Position 2 = 232
Branch analysis from position: 223
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 232
Branch analysis from position: 198
Branch analysis from position: 232
filename:       /in/9OhRL
function name:  (null)
number of ops:  233
compiled vars:  !0 = $db, !1 = $before, !2 = $username, !3 = $password, !4 = $password2, !5 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL_BY_NAME                                       'mysql_connect'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_DIM_FUNC_ARG                               $7      !0, 'host'
          4        SEND_FUNC_ARG                                            $7
          5        CHECK_FUNC_ARG                                           
          6        FETCH_DIM_FUNC_ARG                               $8      !0, 'user'
          7        SEND_FUNC_ARG                                            $8
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $9      !0, 'pass'
         10        SEND_FUNC_ARG                                            $9
         11        DO_FCALL                                      0  $10     
         12        BOOL_NOT                                         ~11     $10
         13      > JMPZ                                                     ~11, ->22
    9    14    >   FETCH_W                      global              $12     '_SESSION'
         15        ASSIGN_DIM                                               $12, 'foutcode'
         16        OP_DATA                                                  'foutcode+002'
   10    17        INIT_FCALL                                               'header'
         18        SEND_VAL                                                 'location%3A+http%3A%2F%2Fmedalwars.url.ph%2F'
         19        DO_ICALL                                                 
   11    20      > EXIT                                                     
         21*       JMP                                                      ->38
   12    22    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         23        CHECK_FUNC_ARG                                           
         24        FETCH_DIM_FUNC_ARG                               $15     !0, 'dbname'
         25        SEND_FUNC_ARG                                            $15
         26        DO_FCALL                                      0  $16     
         27        BOOL_NOT                                         ~17     $16
         28      > JMPZ                                                     ~17, ->38
   13    29    >   FETCH_W                      global              $18     '_SESSION'
         30        ASSIGN_DIM                                               $18, 'foutcode'
         31        OP_DATA                                                  'foutcode+003'
   14    32        INIT_FCALL                                               'header'
         33        NOP                                                      
         34        FAST_CONCAT                                      ~20     'location%3A+', !1
         35        SEND_VAL                                                 ~20
         36        DO_ICALL                                                 
   15    37      > EXIT                                                     
   17    38    >   IS_EQUAL                                                 !1, 'http%3A%2F%2Fmedalwars.url.ph%2Fcreate_account%2F'
         39      > JMPZ                                                     ~22, ->192
   18    40    >   ISSET_ISEMPTY_CV                                 ~23     !2
         41      > JMPZ_EX                                          ~23     ~23, ->44
         42    >   ISSET_ISEMPTY_CV                                 ~24     !3
         43        BOOL                                             ~23     ~24
         44    > > JMPZ_EX                                          ~23     ~23, ->47
         45    >   ISSET_ISEMPTY_CV                                 ~25     !4
         46        BOOL                                             ~23     ~25
         47    > > JMPZ_EX                                          ~23     ~23, ->50
         48    >   ISSET_ISEMPTY_CV                                 ~26     !5
         49        BOOL                                             ~23     ~26
         50    > > JMPZ                                                     ~23, ->61
   19    51    >   FETCH_W                      global              $27     '_SESSION'
         52        ASSIGN_DIM                                               $27, 'foutcode'
         53        OP_DATA                                                  'foutcode+007'
   20    54        INIT_FCALL                                               'header'
         55        NOP                                                      
         56        FAST_CONCAT                                      ~29     'location%3A+', !1
         57        SEND_VAL                                                 ~29
         58        DO_ICALL                                                 
   21    59      > EXIT                                                     
         60*       JMP                                                      ->191
   22    61    >   ISSET_ISEMPTY_CV                                 ~31     !2
         62      > JMPZ_EX                                          ~31     ~31, ->65
         63    >   ISSET_ISEMPTY_CV                                 ~32     !3
         64        BOOL                                             ~31     ~32
         65    > > JMPZ                                                     ~31, ->76
   23    66    >   FETCH_W                      global              $33     '_SESSION'
         67        ASSIGN_DIM                                               $33, 'foutcode'
         68        OP_DATA                                                  'foutcode+012'
   24    69        INIT_FCALL                                               'header'
         70        NOP                                                      
         71        FAST_CONCAT                                      ~35     'location%3A+', !1
         72        SEND_VAL                                                 ~35
         73        DO_ICALL                                                 
   25    74      > EXIT                                                     
         75*       JMP                                                      ->191
   26    76    >   ISSET_ISEMPTY_CV                                 ~37     !2
         77      > JMPZ_EX                                          ~37     ~37, ->80
         78    >   ISSET_ISEMPTY_CV                                 ~38     !5
         79        BOOL                                             ~37     ~38
         80    > > JMPZ                                                     ~37, ->91
   27    81    >   FETCH_W                      global              $39     '_SESSION'
         82        ASSIGN_DIM                                               $39, 'foutcode'
         83        OP_DATA                                                  'foutcode+013'
   28    84        INIT_FCALL                                               'header'
         85        NOP                                                      
         86        FAST_CONCAT                                      ~41     'location%3A+', !1
         87        SEND_VAL                                                 ~41
         88        DO_ICALL                                                 
   29    89      > EXIT                                                     
         90*       JMP                                                      ->191
   30    91    >   ISSET_ISEMPTY_CV                                 ~43     !3
         92      > JMPZ_EX                                          ~43     ~43, ->95
         93    >   ISSET_ISEMPTY_CV                                 ~44     !5
         94        BOOL                                             ~43     ~44
         95    > > JMPZ                                                     ~43, ->106
   31    96    >   FETCH_W                      global              $45     '_SESSION'
         97        ASSIGN_DIM                                               $45, 'foutcode'
         98        OP_DATA                                                  'foutcode+014'
   32    99        INIT_FCALL                                               'header'
        100        NOP                                                      
        101        FAST_CONCAT                                      ~47     'location%3A+', !1
        102        SEND_VAL                                                 ~47
        103        DO_ICALL                                                 
   33   104      > EXIT                                                     
        105*       JMP                                                      ->191
   34   106    >   ISSET_ISEMPTY_CV                                         !2
        107      > JMPZ                                                     ~49, ->118
   35   108    >   FETCH_W                      global              $50     '_SESSION'
        109        ASSIGN_DIM                                               $50, 'foutcode'
        110        OP_DATA                                                  'foutcode+005'
   36   111        INIT_FCALL                                               'header'
        112        NOP                                                      
        113        FAST_CONCAT                                      ~52     'location%3A+', !1
        114        SEND_VAL                                                 ~52
        115        DO_ICALL                                                 
   37   116      > EXIT                                                     
        117*       JMP                                                      ->191
   38   118    >   ISSET_ISEMPTY_CV                                         !3
        119      > JMPZ                                                     ~54, ->130
   39   120    >   FETCH_W                      global              $55     '_SESSION'
        121        ASSIGN_DIM                                               $55, 'foutcode'
        122        OP_DATA                                                  'foutcode+006'
   40   123        INIT_FCALL                                               'header'
        124        NOP                                                      
        125        FAST_CONCAT                                      ~57     'location%3A+', !1
        126        SEND_VAL                                                 ~57
        127        DO_ICALL                                                 
   41   128      > EXIT                                                     
        129*       JMP                                                      ->191
   42   130    >   ISSET_ISEMPTY_CV                                         !4
        131      > JMPZ                                                     ~59, ->142
   43   132    >   FETCH_W                      global              $60     '_SESSION'
        133        ASSIGN_DIM                                               $60, 'foutcode'
        134        OP_DATA                                                  'foutcode+015'
   44   135        INIT_FCALL                                               'header'
        136        NOP                                                      
        137        FAST_CONCAT                                      ~62     'location%3A+', !1
        138        SEND_VAL                                                 ~62
        139        DO_ICALL                                                 
   45   140      > EXIT                                                     
        141*       JMP                                                      ->191
   46   142    >   ISSET_ISEMPTY_CV                                         !5
        143      > JMPZ                                                     ~64, ->154
   47   144    >   FETCH_W                      global              $65     '_SESSION'
        145        ASSIGN_DIM                                               $65, 'foutcode'
        146        OP_DATA                                                  'foutcode+016'
   48   147        INIT_FCALL                                               'header'
        148        NOP                                                      
        149        FAST_CONCAT                                      ~67     'location%3A+', !1
        150        SEND_VAL                                                 ~67
        151        DO_ICALL                                                 
   49   152      > EXIT                                                     
        153*       JMP                                                      ->191
   50   154    >   IS_NOT_EQUAL                                             !3, !4
        155      > JMPZ                                                     ~69, ->166
   51   156    >   FETCH_W                      global              $70     '_SESSION'
        157        ASSIGN_DIM                                               $70, 'foutcode'
        158        OP_DATA                                                  'foutcode+017'
   52   159        INIT_FCALL                                               'header'
        160        NOP                                                      
        161        FAST_CONCAT                                      ~72     'location%3A+', !1
        162        SEND_VAL                                                 ~72
        163        DO_ICALL                                                 
   53   164      > EXIT                                                     
        165*       JMP                                                      ->191
   54   166    >   IS_SMALLER                                       ~74     !2, 6
        167        STRLEN                                           ~75     ~74
        168      > JMPZ                                                     ~75, ->179
   55   169    >   FETCH_W                      global              $76     '_SESSION'
        170        ASSIGN_DIM                                               $76, 'foutcode'
        171        OP_DATA                                                  'foutcode+018'
   56   172        INIT_FCALL                                               'header'
        173        NOP                                                      
        174        FAST_CONCAT                                      ~78     'location%3A+', !1
        175        SEND_VAL                                                 ~78
        176        DO_ICALL                                                 
   57   177      > EXIT                                                     
        178*       JMP                                                      ->191
   58   179    >   IS_SMALLER                                       ~80     !3, 8
        180        STRLEN                                           ~81     ~80
        181      > JMPZ                                                     ~81, ->191
   59   182    >   FETCH_W                      global              $82     '_SESSION'
        183        ASSIGN_DIM                                               $82, 'foutcode'
        184        OP_DATA                                                  'foutcode+019'
   60   185        INIT_FCALL                                               'header'
        186        NOP                                                      
        187        FAST_CONCAT                                      ~84     'location%3A+', !1
        188        SEND_VAL                                                 ~84
        189        DO_ICALL                                                 
   61   190      > EXIT                                                     
        191    > > JMP                                                      ->232
   63   192    >   IS_EQUAL                                                 !1, 'http%3A%2F%2Fmedalwars.url.ph%2F'
        193      > JMPZ                                                     ~86, ->232
   64   194    >   ISSET_ISEMPTY_CV                                 ~87     !2
        195      > JMPZ_EX                                          ~87     ~87, ->198
        196    >   ISSET_ISEMPTY_CV                                 ~88     !3
        197        BOOL                                             ~87     ~88
        198    > > JMPZ                                                     ~87, ->209
   65   199    >   FETCH_W                      global              $89     '_SESSION'
        200        ASSIGN_DIM                                               $89, 'foutcode'
        201        OP_DATA                                                  'foutcode+007'
   66   202        INIT_FCALL                                               'header'
        203        NOP                                                      
        204        FAST_CONCAT                                      ~91     'location%3A+', !1
        205        SEND_VAL                                                 ~91
        206        DO_ICALL                                                 
   67   207      > EXIT                                                     
        208*       JMP                                                      ->232
   68   209    >   ISSET_ISEMPTY_CV                                         !2
        210      > JMPZ                                                     ~93, ->221
   69   211    >   FETCH_W                      global              $94     '_SESSION'
        212        ASSIGN_DIM                                               $94, 'foutcode'
        213        OP_DATA                                                  'foutcode+005'
   70   214        INIT_FCALL                                               'header'
        215        NOP                                                      
        216        FAST_CONCAT                                      ~96     'location%3A+', !1
        217        SEND_VAL                                                 ~96
        218        DO_ICALL                                                 
   71   219      > EXIT                                                     
        220*       JMP                                                      ->232
   72   221    >   ISSET_ISEMPTY_CV                                         !3
        222      > JMPZ                                                     ~98, ->232
   73   223    >   FETCH_W                      global              $99     '_SESSION'
        224        ASSIGN_DIM                                               $99, 'foutcode'
        225        OP_DATA                                                  'foutcode+006'
   74   226        INIT_FCALL                                               'header'
        227        NOP                                                      
        228        FAST_CONCAT                                      ~101    'location%3A+', !1
        229        SEND_VAL                                                 ~101
        230        DO_ICALL                                                 
   75   231      > EXIT                                                     
   78   232    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.39 ms | 1416 KiB | 15 Q