3v4l.org

run code in 300+ PHP versions simultaneously
<?php $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $cwd = '/tmp'; $process = proc_open('/tmp/error-output.txt', $descriptorspec, $pipes, $cwd); var_dump($process); var_dump(stream_get_contents($pipes[1]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GMXni
function name:  (null)
number of ops:  20
compiled vars:  !0 = $descriptorspec, !1 = $cwd, !2 = $process, !3 = $pipes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, '%2Ftmp'
   10     2        INIT_FCALL                                               'proc_open'
          3        SEND_VAL                                                 '%2Ftmp%2Ferror-output.txt'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !3
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   12    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'stream_get_contents'
         14        FETCH_DIM_R                                      ~9      !3, 1
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1395 KiB | 19 Q