3v4l.org

run code in 200+ PHP versions simultaneously
<?php $_SERVER['REQUEST_URI'] = 'student-login'; // We're NOT on the home page if (strpos($_SERVER['REQUEST_URI'], "online") >= 0) { $left_col_class = "gkPageContent"; } elseif(strpos($_SERVER['REQUEST_URI'], "student-login") >= 0) { $left_col_class = "showme"; echo "this is not sanjay"; } elseif(strpos($_SERVER['REQUEST_URI'], "my-account/orders") >= 0) { $left_col_class = "showme"; } elseif(strpos($_SERVER['REQUEST_URI'], "my-account/my-courses") >= 0) { $left_col_class = "showme"; } elseif(strpos($_SERVER['REQUEST_URI'], "my-account/fourm") >= 0) { $left_col_class = "showme"; } elseif(strpos($_SERVER['REQUEST_URI'], "student-login") >= 0) { $left_col_class = "showme"; } elseif (strpos($_SERVER['REQUEST_URI'], "student-login") >= 0) { $left_col_class = "showme"; } else{ echo "dam thing"; } echo $left_col_class;
based on MhaRI
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 72, Position 2 = 74
Branch analysis from position: 72
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
Branch analysis from position: 74
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r8pW7
function name:  (null)
number of ops:  77
compiled vars:  !0 = $left_col_class
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   FETCH_W                      global              $1      '_SERVER'
         1        ASSIGN_ADD                                    0          $1, 'REQUEST_URI'
         2        OP_DATA                                                  'student-login'
   5     3        INIT_FCALL                                               'strpos'
         4        FETCH_R                      global              ~3      '_SERVER'
         5        FETCH_DIM_R                                      ~4      ~3, 'REQUEST_URI'
         6        SEND_VAL                                                 ~4
         7        SEND_VAL                                                 'online'
         8        DO_ICALL                                         $5      
         9        CAST                                          0  ~6      0, $5
        10      > JMPZ                                                     ~6, ->13
   6    11    >   QM_ASSIGN                                                !0
        12      > JMP                                                      ->75
   8    13    >   INIT_FCALL                                               'strpos'
        14        FETCH_R                      global              ~8      '_SERVER'
        15        FETCH_DIM_R                                      ~9      ~8, 'REQUEST_URI'
        16        SEND_VAL                                                 ~9
        17        SEND_VAL                                                 'student-login'
        18        DO_ICALL                                         $10     
        19        CAST                                          0  ~11     0, $10
        20      > JMPZ                                                     ~11, ->24
   9    21    >   QM_ASSIGN                                                !0
  10    22        ASSIGN_OBJ                                               'this+is+not+sanjay'
        23      > JMP                                                      ->75
  12    24    >   INIT_FCALL                                               'strpos'
        25        FETCH_R                      global              ~13     '_SERVER'
        26        FETCH_DIM_R                                      ~14     ~13, 'REQUEST_URI'
        27        SEND_VAL                                                 ~14
        28        SEND_VAL                                                 'my-account%2Forders'
        29        DO_ICALL                                         $15     
        30        CAST                                          0  ~16     0, $15
        31      > JMPZ                                                     ~16, ->34
  13    32    >   QM_ASSIGN                                                !0
        33      > JMP                                                      ->75
  15    34    >   INIT_FCALL                                               'strpos'
        35        FETCH_R                      global              ~18     '_SERVER'
        36        FETCH_DIM_R                                      ~19     ~18, 'REQUEST_URI'
        37        SEND_VAL                                                 ~19
        38        SEND_VAL                                                 'my-account%2Fmy-courses'
        39        DO_ICALL                                         $20     
        40        CAST                                          0  ~21     0, $20
        41      > JMPZ                                                     ~21, ->44
  16    42    >   QM_ASSIGN                                                !0
        43      > JMP                                                      ->75
  18    44    >   INIT_FCALL                                               'strpos'
        45        FETCH_R                      global              ~23     '_SERVER'
        46        FETCH_DIM_R                                      ~24     ~23, 'REQUEST_URI'
        47        SEND_VAL                                                 ~24
        48        SEND_VAL                                                 'my-account%2Ffourm'
        49        DO_ICALL                                         $25     
        50        CAST                                          0  ~26     0, $25
        51      > JMPZ                                                     ~26, ->54
  19    52    >   QM_ASSIGN                                                !0
        53      > JMP                                                      ->75
  21    54    >   INIT_FCALL                                               'strpos'
        55        FETCH_R                      global              ~28     '_SERVER'
        56        FETCH_DIM_R                                      ~29     ~28, 'REQUEST_URI'
        57        SEND_VAL                                                 ~29
        58        SEND_VAL                                                 'student-login'
        59        DO_ICALL                                         $30     
        60        CAST                                          0  ~31     0, $30
        61      > JMPZ                                                     ~31, ->64
  22    62    >   QM_ASSIGN                                                !0
        63      > JMP                                                      ->75
  25    64    >   INIT_FCALL                                               'strpos'
        65        FETCH_R                      global              ~33     '_SERVER'
        66        FETCH_DIM_R                                      ~34     ~33, 'REQUEST_URI'
        67        SEND_VAL                                                 ~34
        68        SEND_VAL                                                 'student-login'
        69        DO_ICALL                                         $35     
        70        CAST                                          0  ~36     0, $35
        71      > JMPZ                                                     ~36, ->74
  26    72    >   QM_ASSIGN                                                !0
        73      > JMP                                                      ->75
  30    74    >   ASSIGN_OBJ                                               'dam+thing'
  32    75    >   ASSIGN_OBJ                                               !0
  33    76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0