3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = [1,2,3]; $obj = new ArrayObject($in); $out = $obj->exchangearray([4,5,6]); var_dump($out); $out[1] = 'herp'; var_dump($in);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3lqMf
function name:  (null)
number of ops:  18
compiled vars:  !0 = $in, !1 = $obj, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    5     5        INIT_METHOD_CALL                                         !1, 'exchangearray'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    7    12        ASSIGN_DIM                                               !2, 1
         13        OP_DATA                                                  'herp'
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1394 KiB | 15 Q