3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = 'somefile'; file_put_contents($filename,''); var_dump(file_exists($filename)); unlink($filename); var_dump(file_exists($filename));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OMh6n
function name:  (null)
number of ops:  21
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'somefile'
    3     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 ''
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'file_exists'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'unlink'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'file_exists'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.58 ms | 1395 KiB | 21 Q