3v4l.org

run code in 300+ PHP versions simultaneously
<?php $context = stream_context_create(array('socket' => array('backlog' => 10))); $server = stream_socket_server('localhost:0', $errno, $errstr, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context); var_dump(stream_context_get_options($server));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hB4Tc
function name:  (null)
number of ops:  19
compiled vars:  !0 = $context, !1 = $server, !2 = $errno, !3 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'stream_context_create'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'stream_socket_server'
          5        SEND_VAL                                                 'localhost%3A0'
          6        SEND_REF                                                 !2
          7        SEND_REF                                                 !3
          8        SEND_VAL                                                 12
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'stream_context_get_options'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.84 ms | 1007 KiB | 17 Q