3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = stream_socket_server('tcp://localhost:1337'); $a = stream_socket_client('tcp://localhost:1337'); $b = stream_socket_client('tcp://localhost:1337'); stream_context_set_option($a, 'test', 'name', 'a'); var_dump(stream_context_get_options($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cdnV9
function name:  (null)
number of ops:  25
compiled vars:  !0 = $server, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'stream_socket_server'
          1        SEND_VAL                                                 'tcp%3A%2F%2Flocalhost%3A1337'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'stream_socket_client'
          5        SEND_VAL                                                 'tcp%3A%2F%2Flocalhost%3A1337'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'stream_socket_client'
          9        SEND_VAL                                                 'tcp%3A%2F%2Flocalhost%3A1337'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    8    12        INIT_FCALL                                               'stream_context_set_option'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'test'
         15        SEND_VAL                                                 'name'
         16        SEND_VAL                                                 'a'
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'stream_context_get_options'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
1724.45 ms | 1018 KiB | 18 Q