3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET[id] = urlencode('admin'); 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>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/A0CNW
function name:  (null)
number of ops:  36
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~1      'id'
          1        INIT_FCALL                                               'urlencode'
          2        SEND_VAL                                                 'admin'
          3        DO_ICALL                                         $3      
          4        FETCH_W                      global              $0      '_GET'
          5        ASSIGN_DIM                                               $0, ~1
          6        OP_DATA                                                  $3
    5     7        INIT_FCALL_BY_NAME                                       'eregi'
          8        SEND_VAL_EX                                              'admin'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_CONSTANT                                   ~5      'id'
         11        FETCH_FUNC_ARG               global              $4      '_GET'
         12        FETCH_DIM_FUNC_ARG                               $6      $4, ~5
         13        SEND_FUNC_ARG                                            $6
         14        DO_FCALL                                      0  $7      
         15      > JMPZ                                                     $7, ->18
    6    16    >   ECHO                                                     '%3Cp%3Enot+allowed%21%3C%2Fp%3E'
    7    17      > EXIT                                                     
   10    18    >   FETCH_CONSTANT                                   ~9      'id'
         19        INIT_FCALL                                               'urldecode'
         20        FETCH_CONSTANT                                   ~12     'id'
         21        FETCH_R                      global              ~11     '_GET'
         22        FETCH_DIM_R                                      ~13     ~11, ~12
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                         $14     
         25        FETCH_W                      global              $8      '_GET'
         26        ASSIGN_DIM                                               $8, ~9
         27        OP_DATA                                                  $14
   11    28        FETCH_CONSTANT                                   ~16     'id'
         29        FETCH_R                      global              ~15     '_GET'
         30        FETCH_DIM_R                                      ~17     ~15, ~16
         31        IS_EQUAL                                                 ~17, 'admin'
         32      > JMPZ                                                     ~18, ->35
   13    33    >   ECHO                                                     '%3Cp%3EAccess+granted%21%3C%2Fp%3E'
   14    34        ECHO                                                     '%3Cp%3EKey%3A+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+%3C%2Fp%3E'
   15    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.72 ms | 1396 KiB | 17 Q