3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = socket_create(AF_UNIX, SOCK_STREAM, 0); echo get_resource_type($c) . "\n"; var_dump($c); // returns stream, expecting Socket
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cHTdH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'socket_create'
          1        FETCH_CONSTANT                                   ~1      'AF_UNIX'
          2        SEND_VAL_EX                                              ~1
          3        FETCH_CONSTANT                                   ~2      'SOCK_STREAM'
          4        SEND_VAL_EX                                              ~2
          5        SEND_VAL_EX                                              0
          6        DO_FCALL                                      0  $3      
          7        ASSIGN                                                   !0, $3
    3     8        INIT_FCALL                                               'get_resource_type'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
    4    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    6    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.36 ms | 1394 KiB | 17 Q