3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements ArrayAccess { public function offsetExists($off) { } public function offsetUnset($off) { } public function offsetSet($off, $el) { } public function offsetGet($off) { var_dump($off); } } $test = new Test(); $test['0'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnq83
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'test'
   22     1        NEW                                              $1      'Test'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   24     4        FETCH_DIM_R                                      ~4      !0, 0
          5        FREE                                                     ~4
          6      > RETURN                                                   1

Class Test:
Function offsetexists:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnq83
function name:  offsetExists
number of ops:  2
compiled vars:  !0 = $off
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     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/bnq83
function name:  offsetUnset
number of ops:  2
compiled vars:  !0 = $off
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1      > RETURN                                                   null

End of function offsetunset

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

End of function offsetset

Function offsetget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnq83
function name:  offsetGet
number of ops:  5
compiled vars:  !0 = $off
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   19     4      > RETURN                                                   null

End of function offsetget

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.1 ms | 1396 KiB | 15 Q