3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.68 ms | 1395 KiB | 19 Q