3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = popen("/bin/bash", "r"); $read = fread($handle, 2096); echo $read;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ms5Qr
function name:  (null)
number of ops:  12
compiled vars:  !0 = $handle, !1 = $read
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'popen'
          1        SEND_VAL                                                 '%2Fbin%2Fbash'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'fread'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 2096
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        ECHO                                                     !1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.27 ms | 1385 KiB | 17 Q