3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3); $o = new ArrayObject(); $o->exchangeArray($array); $o->offsetSet('somekey', 'some value'); print_R($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gpXcn
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $3      'ArrayObject'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    4     4        INIT_METHOD_CALL                                         !1, 'exchangeArray'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    5     7        INIT_METHOD_CALL                                         !1, 'offsetSet'
          8        SEND_VAL_EX                                              'somekey'
          9        SEND_VAL_EX                                              'some+value'
         10        DO_FCALL                                      0          
    6    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.02 ms | 1394 KiB | 15 Q