3v4l.org

run code in 500+ PHP versions simultaneously
<?php $read = $except = null; $write = array("test" => fopen("php://stdout", "w")); var_dump($write); stream_select($read, $write, $except, 0); var_dump($write);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V6eeI
function name:  (null)
number of ops:  21
compiled vars:  !0 = $read, !1 = $except, !2 = $write
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                               ~3      !1, null
          1        ASSIGN                                                       !0, ~3
    4     2        INIT_FCALL                                                   'fopen'
          3        SEND_VAL                                                     'php%3A%2F%2Fstdout'
          4        SEND_VAL                                                     'w'
          5        DO_ICALL                                             $5      
          6        INIT_ARRAY                                           ~6      $5, 'test'
          7        ASSIGN                                                       !2, ~6
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                                     
    7    11        INIT_FCALL                                                   'stream_select'
         12        SEND_REF                                                     !0
         13        SEND_REF                                                     !2
         14        SEND_REF                                                     !1
         15        SEND_VAL                                                     0
         16        DO_ICALL                                                     
    8    17        INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !2
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.86 ms | 3382 KiB | 16 Q