3v4l.org

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

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

End of function offsetexists

Function offsetset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/piOOH
function name:  offsetSet
number of ops:  3
compiled vars:  !0 = $index, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > 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/piOOH
function name:  offsetUnset
number of ops:  2
compiled vars:  !0 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          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/piOOH
function name:  offsetGet
number of ops:  5
compiled vars:  !0 = $index, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ECHO                                                     'GETARRAYPROXY%0A'
   11     2        BIND_STATIC                                              !1
   12     3      > RETURN                                                   !1
   13     4*     > RETURN                                                   null

End of function offsetget

End of class Peoples.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.71 ms | 1395 KiB | 13 Q