3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.86 ms | 1016 KiB | 19 Q