3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '/proc/self/mem'; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp); exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/P46cQ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $name, !1 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fproc%2Fself%2Fmem'
    4     1        INIT_FCALL                                               'fopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'rb'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        INIT_FCALL                                               'header'
          7        SEND_VAL                                                 'Content-Type%3A+image%2Fpng'
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'header'
         10        INIT_FCALL                                               'filesize'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      'Content-Length%3A+', $6
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
   11    16        INIT_FCALL                                               'fpassthru'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   12    19      > EXIT                                                     
         20*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.65 ms | 1395 KiB | 21 Q