3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dD9ZH
function name:  (null)
number of ops:  33
compiled vars:  !0 = $source_resource
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'stream_filter_register'
          1        SEND_VAL                                                 'filtername'
          2        SEND_VAL                                                 'MyFilter'
          3        DO_ICALL                                                 
   14     4        INIT_FCALL                                               'fopen'
          5        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          6        SEND_VAL                                                 'rb%2B'
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
   15     9        INIT_FCALL                                               'fwrite'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'Test+data'
         12        DO_ICALL                                                 
   16    13        INIT_FCALL                                               'rewind'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   18    16        INIT_FCALL                                               'stream_filter_prepend'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 'filtername'
         19        SEND_VAL                                                 1
         20        DO_ICALL                                                 
   20    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'stream_copy_to_stream'
         23        SEND_VAR                                                 !0
         24        INIT_FCALL                                               'fopen'
         25        SEND_VAL                                                 'php%3A%2F%2Fmemory'
         26        SEND_VAL                                                 'wb'
         27        DO_ICALL                                         $7      
         28        SEND_VAR                                                 $7
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Class MyFilter:
Function filter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dD9ZH
function name:  filter
number of ops:  9
compiled vars:  !0 = $in, !1 = $out, !2 = $consumed, !3 = $closing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    6     4        INIT_FCALL                                               'stream_bucket_make_writeable'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7      > RETURN                                                   0
    8     8*     > RETURN                                                   null

End of function filter

End of class MyFilter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
281.66 ms | 979 KiB | 21 Q