3v4l.org

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

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

End of function offsetget

Function offsetunset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NvNPu
function name:  offsetUnset
number of ops:  2
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          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/NvNPu
function name:  offsetSet
number of ops:  3
compiled vars:  !0 = $o, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          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/NvNPu
function name:  offsetExists
number of ops:  5
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function offsetexists

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.14 ms | 1003 KiB | 14 Q