3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ['test' => fopen('php://stdin')]; $_null = null; stream_select($x, $x, $_null, 1); var_djmp($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FhmQt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x, !1 = $_null
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fstdin'
          2        DO_ICALL                                         $2      
          3        INIT_ARRAY                                       ~3      $2, 'test'
          4        ASSIGN                                                   !0, ~3
    5     5        ASSIGN                                                   !1, null
    6     6        INIT_FCALL                                               'stream_select'
          7        SEND_REF                                                 !0
          8        SEND_REF                                                 !0
          9        SEND_REF                                                 !1
         10        SEND_VAL                                                 1
         11        DO_ICALL                                                 
    8    12        INIT_FCALL_BY_NAME                                       'var_djmp'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.83 ms | 1394 KiB | 17 Q