3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen(__FILE__,'r'); unlink(__FILE__); while($line = fgets($fp)){ var_dump($line); } fclose($fp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/mbklZ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fp, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 '%2Fin%2FmbklZ'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'unlink'
          6        SEND_VAL                                                 '%2Fin%2FmbklZ'
          7        DO_ICALL                                                 
    5     8      > JMP                                                      ->12
    6     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    5    12    >   INIT_FCALL                                               'fgets'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        ASSIGN                                           ~7      !1, $6
         16      > JMPNZ                                                    ~7, ->9
    8    17    >   INIT_FCALL                                               'fclose'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.63 ms | 1399 KiB | 23 Q