3v4l.org

run code in 300+ PHP versions simultaneously
<? if(eregi("admin",$_GET[id])) { echo("<p>not allowed!</p>"); exit(); } $_GET[id] = urldecode($_GET[id]); if($_GET[id] == "admin") { echo "<p>Access granted!</p>"; echo "<p>Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </p>"; } ?> <br><br> Can you authenticate to this website? <!-- source: index.phps -->
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/ea3PM
function name:  (null)
number of ops:  30
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'eregi'
          1        SEND_VAL_EX                                              'admin'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_CONSTANT                                   ~1      'id'
          4        FETCH_FUNC_ARG               global              $0      '_GET'
          5        FETCH_DIM_FUNC_ARG                               $2      $0, ~1
          6        SEND_FUNC_ARG                                            $2
          7        DO_FCALL                                      0  $3      
          8      > JMPZ                                                     $3, ->11
    3     9    >   ECHO                                                     '%3Cp%3Enot+allowed%21%3C%2Fp%3E'
    4    10      > EXIT                                                     
    7    11    >   FETCH_CONSTANT                                   ~5      'id'
         12        INIT_FCALL                                               'urldecode'
         13        FETCH_CONSTANT                                   ~8      'id'
         14        FETCH_R                      global              ~7      '_GET'
         15        FETCH_DIM_R                                      ~9      ~7, ~8
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        FETCH_W                      global              $4      '_GET'
         19        ASSIGN_DIM                                               $4, ~5
         20        OP_DATA                                                  $10
    8    21        FETCH_CONSTANT                                   ~12     'id'
         22        FETCH_R                      global              ~11     '_GET'
         23        FETCH_DIM_R                                      ~13     ~11, ~12
         24        IS_EQUAL                                                 ~13, 'admin'
         25      > JMPZ                                                     ~14, ->28
   10    26    >   ECHO                                                     '%3Cp%3EAccess+granted%21%3C%2Fp%3E'
   11    27        ECHO                                                     '%3Cp%3EKey%3A+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+%3C%2Fp%3E'
   14    28    >   ECHO                                                     '%0A%0A%3Cbr%3E%3Cbr%3E%0ACan+you+authenticate+to+this+website%3F%0A%3C%21--+source%3A+index.phps+--%3E'
   18    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.25 ms | 1401 KiB | 15 Q