3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Data implements ArrayAccess { public $namespaceScopes = []; // make private public function offsetExists(string $namespace) : bool { return isset($this->namespaceScope[$namespace]); } public function offsetGet(string $namespace) : NamespaceScope { return $this->namespaceScopes[$namespace]; } public function offsetSet(string $namespace, NamespaceScope $namespaceScope) { $this->namespaceScopes[$namespace] = $namespaceScope; } public function offsetUnset(string $namespace) { unset($this->namespaceScopes[$namespace]); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKImF
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'data'
   26     1      > RETURN                                                   1

Class Data:
Function offsetexists:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKImF
function name:  offsetExists
number of ops:  7
compiled vars:  !0 = $namespace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        FETCH_OBJ_IS                                     ~1      'namespaceScope'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      ~1, !0
          3        VERIFY_RETURN_TYPE                                       ~2
          4      > RETURN                                                   ~2
   10     5*       VERIFY_RETURN_TYPE                                       
          6*     > RETURN                                                   null

End of function offsetexists

Function offsetget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKImF
function name:  offsetGet
number of ops:  7
compiled vars:  !0 = $namespace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        FETCH_OBJ_R                                      ~1      'namespaceScopes'
          2        FETCH_DIM_R                                      ~2      ~1, !0
          3        VERIFY_RETURN_TYPE                                       ~2
          4      > RETURN                                                   ~2
   15     5*       VERIFY_RETURN_TYPE                                       
          6*     > RETURN                                                   null

End of function offsetget

Function offsetset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKImF
function name:  offsetSet
number of ops:  6
compiled vars:  !0 = $namespace, !1 = $namespaceScope
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   19     2        FETCH_OBJ_W                                      $2      'namespaceScopes'
          3        ASSIGN_DIM                                               $2, !0
          4        OP_DATA                                                  !1
   20     5      > RETURN                                                   null

End of function offsetset

Function offsetunset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TKImF
function name:  offsetUnset
number of ops:  4
compiled vars:  !0 = $namespace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        FETCH_OBJ_UNSET                                  $1      'namespaceScopes'
          2        UNSET_DIM                                                $1, !0
   25     3      > RETURN                                                   null

End of function offsetunset

End of class Data.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
291.96 ms | 1399 KiB | 14 Q