3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = popen("echo foo", 'r'); $content = stream_get_contents($h); $result = pclose($h); var_dump($content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4fZDO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $h, !1 = $content, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'popen'
          1        SEND_VAL                                                 'echo+foo'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'stream_get_contents'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9        INIT_FCALL                                               'pclose'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.53 ms | 1394 KiB | 21 Q