3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.6 ms | 1396 KiB | 15 Q