3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.74 ms | 1386 KiB | 19 Q