3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = [4,5,6]; $arr3 = [7,8,9]; $total = [$arr1,$arr2,$arr3]; var_dump( $total ); $total[0] = $arr3; $total[1] = $arr1; $total[2] = $arr2; var_dump( $total );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3LFYZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3, !3 = $total
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    7     3        INIT_ARRAY                                           ~7      !0
          4        ADD_ARRAY_ELEMENT                                    ~7      !1
          5        ADD_ARRAY_ELEMENT                                    ~7      !2
          6        ASSIGN                                                       !3, ~7
    9     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !3
          9        DO_ICALL                                                     
   11    10        ASSIGN_DIM                                                   !3, 0
         11        OP_DATA                                                      !2
   12    12        ASSIGN_DIM                                                   !3, 1
         13        OP_DATA                                                      !0
   13    14        ASSIGN_DIM                                                   !3, 2
         15        OP_DATA                                                      !1
   15    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !3
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.66 ms | 2391 KiB | 13 Q