3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = socket_create(AF_UNIX, SOCK_STREAM, 0); var_dump(get_resource_type($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BCrYu
function name:  (null)
number of ops:  15
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     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
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'get_resource_type'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.3 ms | 1394 KiB | 17 Q