3v4l.org

run code in 300+ PHP versions simultaneously
<?php touch('/tmp/a'); $f = fopen('/tmp/a', 'r'); var_dump(fwrite($f, 'hello'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J467M
function name:  (null)
number of ops:  16
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'touch'
          1        SEND_VAL                                                 '%2Ftmp%2Fa'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'fopen'
          4        SEND_VAL                                                 '%2Ftmp%2Fa'
          5        SEND_VAL                                                 'r'
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    6     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'fwrite'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'hello'
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.75 ms | 1015 KiB | 17 Q