3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo(getcwd()); $h = fopen('tmp.php', 'w+'); if ($h) echo("ok");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/m1iBt
function name:  (null)
number of ops:  11
compiled vars:  !0 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'getcwd'
          1        DO_ICALL                                         $1      
          2        ECHO                                                     $1
    4     3        INIT_FCALL                                               'fopen'
          4        SEND_VAL                                                 'tmp.php'
          5        SEND_VAL                                                 'w%2B'
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    5     8      > JMPZ                                                     !0, ->10
          9    >   ECHO                                                     'ok'
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.06 ms | 1394 KiB | 17 Q