3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CacheInterface { public function get(string $key): ?string; public function set(string $key, array $value); } class ApcCache implements CacheInterface { private $client; public function __construct($client) { $this->client = $client; } public function get(string $key):?string { $ret = apc_fetch($key); if (empty($ret)) { return null; } return $ret; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VqNle
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'apccache'
   27     1      > RETURN                                                   1

Class CacheInterface:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VqNle
function name:  get
number of ops:  3
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        VERIFY_RETURN_TYPE                                       
          2      > RETURN                                                   null

End of function get

Function set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VqNle
function name:  set
number of ops:  3
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function set

End of class CacheInterface.

Class ApcCache:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VqNle
function name:  __construct
number of ops:  4
compiled vars:  !0 = $client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'client'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function __construct

Function get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VqNle
function name:  get
number of ops:  12
compiled vars:  !0 = $key, !1 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   20     1        INIT_FCALL_BY_NAME                                       'apc_fetch'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !1, $2
   21     5        ISSET_ISEMPTY_CV                                         !1
          6      > JMPZ                                                     ~4, ->8
   22     7    > > RETURN                                                   null
   25     8    >   VERIFY_RETURN_TYPE                                       !1
          9      > RETURN                                                   !1
   26    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function get

End of class ApcCache.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.04 ms | 1399 KiB | 13 Q