3v4l.org

run code in 500+ PHP versions simultaneously
<?php $mem=fopen('php://memory','rw'); var_dump(fstat($mem)); var_dump(stat('php://memory'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6TpPg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $mem
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'fopen'
          1        SEND_VAL                                                     'php%3A%2F%2Fmemory'
          2        SEND_VAL                                                     'rw'
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    3     5        INIT_FCALL                                                   'var_dump'
          6        INIT_FCALL                                                   'fstat'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $3      
          9        SEND_VAR                                                     $3
         10        DO_ICALL                                                     
    4    11        INIT_FCALL                                                   'var_dump'
         12        INIT_FCALL                                                   'stat'
         13        SEND_VAL                                                     'php%3A%2F%2Fmemory'
         14        DO_ICALL                                             $5      
         15        SEND_VAR                                                     $5
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.95 ms | 480 KiB | 11 Q