3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/etc/sshd/sshd_config'; $handle = fopen($file, 'r'); $data = fread($handle, filesize($file)); fclose($handle); echo $data;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lc1Yk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $file, !1 = $handle, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fetc%2Fsshd%2Fsshd_config'
    4     1        INIT_FCALL                                               'fopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     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
    7    14        INIT_FCALL                                               'fclose'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
    9    17        ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.49 ms | 1394 KiB | 21 Q