3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myFile = "/etc/issue"; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); echo $theData;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/km3FA
function name:  (null)
number of ops:  19
compiled vars:  !0 = $myFile, !1 = $fh, !2 = $theData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fetc%2Fissue'
    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                                                 
    6    17        ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.85 ms | 1394 KiB | 21 Q