3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER['REQUEST_URI'] = 'my-account/orders'; 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;
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/rlAKm
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_DIM                                               $1, 'REQUEST_URI'
          2        OP_DATA                                                  'my-account%2Forders'
    4     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        IS_SMALLER_OR_EQUAL                                      0, $5
         10      > JMPZ                                                     ~6, ->13
    5    11    >   ASSIGN                                                   !0, 'gkPageContent'
         12      > JMP                                                      ->75
    7    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        IS_SMALLER_OR_EQUAL                                      0, $10
         20      > JMPZ                                                     ~11, ->24
    8    21    >   ASSIGN                                                   !0, 'showme'
    9    22        ECHO                                                     'this+is+not+sanjay'
         23      > JMP                                                      ->75
   11    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        IS_SMALLER_OR_EQUAL                                      0, $15
         31      > JMPZ                                                     ~16, ->34
   12    32    >   ASSIGN                                                   !0, 'showme'
         33      > JMP                                                      ->75
   14    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        IS_SMALLER_OR_EQUAL                                      0, $20
         41      > JMPZ                                                     ~21, ->44
   15    42    >   ASSIGN                                                   !0, 'showme'
         43      > JMP                                                      ->75
   17    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        IS_SMALLER_OR_EQUAL                                      0, $25
         51      > JMPZ                                                     ~26, ->54
   18    52    >   ASSIGN                                                   !0, 'showme'
         53      > JMP                                                      ->75
   20    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        IS_SMALLER_OR_EQUAL                                      0, $30
         61      > JMPZ                                                     ~31, ->64
   21    62    >   ASSIGN                                                   !0, 'showme'
         63      > JMP                                                      ->75
   23    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        IS_SMALLER_OR_EQUAL                                      0, $35
         71      > JMPZ                                                     ~36, ->74
   24    72    >   ASSIGN                                                   !0, 'showme'
         73      > JMP                                                      ->75
   27    74    >   ECHO                                                     'dam+thing'
   30    75    >   ECHO                                                     !0
   31    76      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.07 ms | 1404 KiB | 15 Q