3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r($_SERVER['argv']); $pipes = array(); proc_open('/bin/echo', array(), $pipes, null, $_SERVER); print_r($_SERVER['argv']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s35fA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $pipes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_R                      global              ~1      '_SERVER'
          2        FETCH_DIM_R                                      ~2      ~1, 'argv'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    4     5        ASSIGN                                                   !0, <array>
    5     6        INIT_FCALL                                               'proc_open'
          7        SEND_VAL                                                 '%2Fbin%2Fecho'
          8        SEND_VAL                                                 <array>
          9        SEND_REF                                                 !0
         10        SEND_VAL                                                 null
         11        FETCH_R                      global              ~5      '_SERVER'
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'print_r'
         15        FETCH_R                      global              ~7      '_SERVER'
         16        FETCH_DIM_R                                      ~8      ~7, 'argv'
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.88 ms | 1395 KiB | 17 Q