3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = stream_socket_server('unix:///tmp/demo.sock'); $c = stream_socket_client('unix:///tmp/demo.sock'); var_dump( stream_socket_get_name($s, true), stream_socket_get_name($c, false) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VStV6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s, !1 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'stream_socket_server'
          1        SEND_VAL                                                     'unix%3A%2F%2F%2Ftmp%2Fdemo.sock'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'stream_socket_client'
          5        SEND_VAL                                                     'unix%3A%2F%2F%2Ftmp%2Fdemo.sock'
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        INIT_FCALL                                                   'var_dump'
    7     9        INIT_FCALL                                                   'stream_socket_get_name'
         10        SEND_VAR                                                     !0
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $6      
         13        SEND_VAR                                                     $6
    8    14        INIT_FCALL                                                   'stream_socket_get_name'
         15        SEND_VAR                                                     !1
         16        SEND_VAL                                                     <false>
         17        DO_ICALL                                             $7      
         18        SEND_VAR                                                     $7
    6    19        DO_ICALL                                                     
    9    20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
198.14 ms | 3311 KiB | 17 Q