3v4l.org

run code in 500+ PHP versions simultaneously
<?php $stream = fopen('php://memory', 'w+'); fwrite($stream, 'something something'); stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ, ['level' => 6]); rewind($stream); var_dump(fread($stream, 1024));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RRJ8b
function name:  (null)
number of ops:  26
compiled vars:  !0 = $stream
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'fopen'
          1        SEND_VAL                                                     'php%3A%2F%2Fmemory'
          2        SEND_VAL                                                     'w%2B'
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    4     5        INIT_FCALL                                                   'fwrite'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     'something+something'
          8        DO_ICALL                                                     
    5     9        INIT_FCALL                                                   'stream_filter_append'
         10        SEND_VAR                                                     !0
         11        SEND_VAL                                                     'zlib.deflate'
         12        SEND_VAL                                                     1
         13        SEND_VAL                                                     <array>
         14        DO_ICALL                                                     
    6    15        INIT_FCALL                                                   'rewind'
         16        SEND_VAR                                                     !0
         17        DO_ICALL                                                     
    7    18        INIT_FCALL                                                   'var_dump'
         19        INIT_FCALL                                                   'fread'
         20        SEND_VAR                                                     !0
         21        SEND_VAL                                                     1024
         22        DO_ICALL                                             $6      
         23        SEND_VAR                                                     $6
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.78 ms | 3207 KiB | 19 Q