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]); echo $_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 = 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 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/TPIt5
function name:  (null)
number of ops:  37
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                                   ~15     'id'
         26        FETCH_R                      global              ~14     '_GET'
         27        FETCH_DIM_R                                      ~16     ~14, ~15
         28        ECHO                                                     ~16
   12    29        FETCH_CONSTANT                                   ~18     'id'
         30        FETCH_R                      global              ~17     '_GET'
         31        FETCH_DIM_R                                      ~19     ~17, ~18
         32        IS_EQUAL                                                 ~19, 'admin'
         33      > JMPZ                                                     ~20, ->36
   14    34    >   ECHO                                                     '%3Cp%3EAccess+granted%21%3C%2Fp%3E'
   15    35        ECHO                                                     '%3Cp%3EKey%3A+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+%3C%2Fp%3E'
   16    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.94 ms | 1388 KiB | 15 Q