3v4l.org

run code in 500+ PHP versions simultaneously
<?php $f = tmpfile(); fwrite($f, 'content here'); fseek($f, 0); echo fread($f, 1024);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XFGnU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'tmpfile'
          1        DO_ICALL                                             $1      
          2        ASSIGN                                                       !0, $1
    4     3        INIT_FCALL                                                   'fwrite'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     'content+here'
          6        DO_ICALL                                                     
    5     7        INIT_FCALL                                                   'fseek'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     0
         10        DO_ICALL                                                     
    6    11        INIT_FCALL                                                   'fread'
         12        SEND_VAR                                                     !0
         13        SEND_VAL                                                     1024
         14        DO_ICALL                                             $5      
         15        ECHO                                                         $5
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
182.21 ms | 2514 KiB | 17 Q