3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj implements ArrayAccess { public function offsetSet($offset, \stdClass $value) { } public function offsetExists($offset) { } public function offsetUnset($offset) { } public function offsetGet($offset) { } } $v = new obj; $v[new stdClass()] = 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0Phe
function name:  (null)
number of ops:  9
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'obj'
   17     1        NEW                                              $1      'obj'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   18     4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN_DIM                                               !0, $4
          7        OP_DATA                                                  1
          8      > RETURN                                                   1

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

End of function offsetset

Function offsetexists:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0Phe
function name:  offsetExists
number of ops:  2
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1      > RETURN                                                   null

End of function offsetexists

Function offsetunset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0Phe
function name:  offsetUnset
number of ops:  2
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1      > RETURN                                                   null

End of function offsetunset

Function offsetget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0Phe
function name:  offsetGet
number of ops:  2
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1      > RETURN                                                   null

End of function offsetget

End of class obj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1395 KiB | 13 Q