3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/tmp/socket'; touch($file); $server = stream_socket_server('unix://' . $file, $errno, $errstr); var_dump(gettype($server), $errno, $errstr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NAhpr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $file, !1 = $server, !2 = $errno, !3 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Ftmp%2Fsocket'
    4     1        INIT_FCALL                                               'touch'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'stream_socket_server'
          5        CONCAT                                           ~6      'unix%3A%2F%2F', !0
          6        SEND_VAL                                                 ~6
          7        SEND_REF                                                 !2
          8        SEND_REF                                                 !3
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    7    11        INIT_FCALL                                               'var_dump'
         12        GET_TYPE                                         ~9      !1
         13        SEND_VAL                                                 ~9
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.37 ms | 1001 KiB | 16 Q