3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "./../tmp/copyofpasswd"; $fp = fopen($filename,'r'); $via = fread ($fp, filesize ($filename)); fclose($fp); echo $via; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mMID5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $filename, !1 = $fp, !2 = $via
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '.%2F..%2Ftmp%2Fcopyofpasswd'
    3     1        INIT_FCALL                                               'fopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'fread'
          7        SEND_VAR                                                 !1
          8        INIT_FCALL                                               'filesize'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    5    14        INIT_FCALL                                               'fclose'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17        ECHO                                                     !2
    6    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.72 ms | 1386 KiB | 21 Q