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($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($email)){ $_SESSION['foutcode'] = 'foutcode 012'; 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 = 139
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 = 43) Position 1 = 48, Position 2 = 58
Branch analysis from position: 48
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 58
2 jumps found. (Code = 46) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 73
Branch analysis from position: 63
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 73
2 jumps found. (Code = 46) Position 1 = 75, Position 2 = 77
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 88
Branch analysis from position: 78
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 88
2 jumps found. (Code = 46) Position 1 = 90, Position 2 = 92
Branch analysis from position: 90
2 jumps found. (Code = 43) Position 1 = 93, Position 2 = 103
Branch analysis from position: 93
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 103
2 jumps found. (Code = 43) Position 1 = 105, Position 2 = 115
Branch analysis from position: 105
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 115
2 jumps found. (Code = 43) Position 1 = 117, Position 2 = 127
Branch analysis from position: 117
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 127
2 jumps found. (Code = 43) Position 1 = 129, Position 2 = 138
Branch analysis from position: 129
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 138
1 jumps found. (Code = 42) Position 1 = 179
Branch analysis from position: 179
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 92
Branch analysis from position: 77
Branch analysis from position: 62
Branch analysis from position: 47
Branch analysis from position: 44
Branch analysis from position: 139
2 jumps found. (Code = 43) Position 1 = 141, Position 2 = 179
Branch analysis from position: 141
2 jumps found. (Code = 46) Position 1 = 143, Position 2 = 145
Branch analysis from position: 143
2 jumps found. (Code = 43) Position 1 = 146, Position 2 = 156
Branch analysis from position: 146
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 156
2 jumps found. (Code = 43) Position 1 = 158, Position 2 = 168
Branch analysis from position: 158
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 168
2 jumps found. (Code = 43) Position 1 = 170, Position 2 = 179
Branch analysis from position: 170
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 179
Branch analysis from position: 145
Branch analysis from position: 179
filename:       /in/i5Tpm
function name:  (null)
number of ops:  180
compiled vars:  !0 = $db, !1 = $before, !2 = $username, !3 = $password, !4 = $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                               $6      !0, 'host'
          4        SEND_FUNC_ARG                                            $6
          5        CHECK_FUNC_ARG                                           
          6        FETCH_DIM_FUNC_ARG                               $7      !0, 'user'
          7        SEND_FUNC_ARG                                            $7
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $8      !0, 'pass'
         10        SEND_FUNC_ARG                                            $8
         11        DO_FCALL                                      0  $9      
         12        BOOL_NOT                                         ~10     $9
         13      > JMPZ                                                     ~10, ->22
    9    14    >   FETCH_W                      global              $11     '_SESSION'
         15        ASSIGN_DIM                                               $11, '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                               $14     !0, 'dbname'
         25        SEND_FUNC_ARG                                            $14
         26        DO_FCALL                                      0  $15     
         27        BOOL_NOT                                         ~16     $15
         28      > JMPZ                                                     ~16, ->38
   13    29    >   FETCH_W                      global              $17     '_SESSION'
         30        ASSIGN_DIM                                               $17, 'foutcode'
         31        OP_DATA                                                  'foutcode+003'
   14    32        INIT_FCALL                                               'header'
         33        NOP                                                      
         34        FAST_CONCAT                                      ~19     'location%3A+', !1
         35        SEND_VAL                                                 ~19
         36        DO_ICALL                                                 
   15    37      > EXIT                                                     
   17    38    >   IS_EQUAL                                                 !1, 'http%3A%2F%2Fmedalwars.url.ph%2Fcreate_account%2F'
         39      > JMPZ                                                     ~21, ->139
   18    40    >   ISSET_ISEMPTY_CV                                 ~22     !2
         41      > JMPZ_EX                                          ~22     ~22, ->44
         42    >   ISSET_ISEMPTY_CV                                 ~23     !3
         43        BOOL                                             ~22     ~23
         44    > > JMPZ_EX                                          ~22     ~22, ->47
         45    >   ISSET_ISEMPTY_CV                                 ~24     !4
         46        BOOL                                             ~22     ~24
         47    > > JMPZ                                                     ~22, ->58
   19    48    >   FETCH_W                      global              $25     '_SESSION'
         49        ASSIGN_DIM                                               $25, 'foutcode'
         50        OP_DATA                                                  'foutcode+007'
   20    51        INIT_FCALL                                               'header'
         52        NOP                                                      
         53        FAST_CONCAT                                      ~27     'location%3A+', !1
         54        SEND_VAL                                                 ~27
         55        DO_ICALL                                                 
   21    56      > EXIT                                                     
         57*       JMP                                                      ->138
   22    58    >   ISSET_ISEMPTY_CV                                 ~29     !2
         59      > JMPZ_EX                                          ~29     ~29, ->62
         60    >   ISSET_ISEMPTY_CV                                 ~30     !3
         61        BOOL                                             ~29     ~30
         62    > > JMPZ                                                     ~29, ->73
   23    63    >   FETCH_W                      global              $31     '_SESSION'
         64        ASSIGN_DIM                                               $31, 'foutcode'
         65        OP_DATA                                                  'foutcode+012'
   24    66        INIT_FCALL                                               'header'
         67        NOP                                                      
         68        FAST_CONCAT                                      ~33     'location%3A+', !1
         69        SEND_VAL                                                 ~33
         70        DO_ICALL                                                 
   25    71      > EXIT                                                     
         72*       JMP                                                      ->138
   26    73    >   ISSET_ISEMPTY_CV                                 ~35     !2
         74      > JMPZ_EX                                          ~35     ~35, ->77
         75    >   ISSET_ISEMPTY_CV                                 ~36     !4
         76        BOOL                                             ~35     ~36
         77    > > JMPZ                                                     ~35, ->88
   27    78    >   FETCH_W                      global              $37     '_SESSION'
         79        ASSIGN_DIM                                               $37, 'foutcode'
         80        OP_DATA                                                  'foutcode+013'
   28    81        INIT_FCALL                                               'header'
         82        NOP                                                      
         83        FAST_CONCAT                                      ~39     'location%3A+', !1
         84        SEND_VAL                                                 ~39
         85        DO_ICALL                                                 
   29    86      > EXIT                                                     
         87*       JMP                                                      ->138
   30    88    >   ISSET_ISEMPTY_CV                                 ~41     !3
         89      > JMPZ_EX                                          ~41     ~41, ->92
         90    >   ISSET_ISEMPTY_CV                                 ~42     !4
         91        BOOL                                             ~41     ~42
         92    > > JMPZ                                                     ~41, ->103
   31    93    >   FETCH_W                      global              $43     '_SESSION'
         94        ASSIGN_DIM                                               $43, 'foutcode'
         95        OP_DATA                                                  'foutcode+014'
   32    96        INIT_FCALL                                               'header'
         97        NOP                                                      
         98        FAST_CONCAT                                      ~45     'location%3A+', !1
         99        SEND_VAL                                                 ~45
        100        DO_ICALL                                                 
   33   101      > EXIT                                                     
        102*       JMP                                                      ->138
   34   103    >   ISSET_ISEMPTY_CV                                         !2
        104      > JMPZ                                                     ~47, ->115
   35   105    >   FETCH_W                      global              $48     '_SESSION'
        106        ASSIGN_DIM                                               $48, 'foutcode'
        107        OP_DATA                                                  'foutcode+005'
   36   108        INIT_FCALL                                               'header'
        109        NOP                                                      
        110        FAST_CONCAT                                      ~50     'location%3A+', !1
        111        SEND_VAL                                                 ~50
        112        DO_ICALL                                                 
   37   113      > EXIT                                                     
        114*       JMP                                                      ->138
   38   115    >   ISSET_ISEMPTY_CV                                         !3
        116      > JMPZ                                                     ~52, ->127
   39   117    >   FETCH_W                      global              $53     '_SESSION'
        118        ASSIGN_DIM                                               $53, 'foutcode'
        119        OP_DATA                                                  'foutcode+006'
   40   120        INIT_FCALL                                               'header'
        121        NOP                                                      
        122        FAST_CONCAT                                      ~55     'location%3A+', !1
        123        SEND_VAL                                                 ~55
        124        DO_ICALL                                                 
   41   125      > EXIT                                                     
        126*       JMP                                                      ->138
   42   127    >   ISSET_ISEMPTY_CV                                         !4
        128      > JMPZ                                                     ~57, ->138
   43   129    >   FETCH_W                      global              $58     '_SESSION'
        130        ASSIGN_DIM                                               $58, 'foutcode'
        131        OP_DATA                                                  'foutcode+012'
   44   132        INIT_FCALL                                               'header'
        133        NOP                                                      
        134        FAST_CONCAT                                      ~60     'location%3A+', !1
        135        SEND_VAL                                                 ~60
        136        DO_ICALL                                                 
   45   137      > EXIT                                                     
        138    > > JMP                                                      ->179
   47   139    >   IS_EQUAL                                                 !1, 'http%3A%2F%2Fmedalwars.url.ph%2F'
        140      > JMPZ                                                     ~62, ->179
   48   141    >   ISSET_ISEMPTY_CV                                 ~63     !2
        142      > JMPZ_EX                                          ~63     ~63, ->145
        143    >   ISSET_ISEMPTY_CV                                 ~64     !3
        144        BOOL                                             ~63     ~64
        145    > > JMPZ                                                     ~63, ->156
   49   146    >   FETCH_W                      global              $65     '_SESSION'
        147        ASSIGN_DIM                                               $65, 'foutcode'
        148        OP_DATA                                                  'foutcode+007'
   50   149        INIT_FCALL                                               'header'
        150        NOP                                                      
        151        FAST_CONCAT                                      ~67     'location%3A+', !1
        152        SEND_VAL                                                 ~67
        153        DO_ICALL                                                 
   51   154      > EXIT                                                     
        155*       JMP                                                      ->179
   52   156    >   ISSET_ISEMPTY_CV                                         !2
        157      > JMPZ                                                     ~69, ->168
   53   158    >   FETCH_W                      global              $70     '_SESSION'
        159        ASSIGN_DIM                                               $70, 'foutcode'
        160        OP_DATA                                                  'foutcode+005'
   54   161        INIT_FCALL                                               'header'
        162        NOP                                                      
        163        FAST_CONCAT                                      ~72     'location%3A+', !1
        164        SEND_VAL                                                 ~72
        165        DO_ICALL                                                 
   55   166      > EXIT                                                     
        167*       JMP                                                      ->179
   56   168    >   ISSET_ISEMPTY_CV                                         !3
        169      > JMPZ                                                     ~74, ->179
   57   170    >   FETCH_W                      global              $75     '_SESSION'
        171        ASSIGN_DIM                                               $75, 'foutcode'
        172        OP_DATA                                                  'foutcode+006'
   58   173        INIT_FCALL                                               'header'
        174        NOP                                                      
        175        FAST_CONCAT                                      ~77     'location%3A+', !1
        176        SEND_VAL                                                 ~77
        177        DO_ICALL                                                 
   59   178      > EXIT                                                     
   62   179    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.47 ms | 1404 KiB | 15 Q