3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends ArrayObject { public function offsetGet($offset) { isset($this[$offset]); } } $a = new A; $a['one'] = 10; echo $a['one'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ZlYT
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        ASSIGN_DIM                                               !0, 'one'
          4        OP_DATA                                                  10
   11     5        FETCH_DIM_R                                      ~5      !0, 'one'
          6        ECHO                                                     ~5
          7      > RETURN                                                   1

Class A:
Function offsetget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5ZlYT
function name:  offsetGet
number of ops:  5
compiled vars:  !0 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        FETCH_THIS                                       ~1      
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      ~1, !0
          3        FREE                                                     ~2
    6     4      > RETURN                                                   null

End of function offsetget

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.32 ms | 1393 KiB | 13 Q