3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1=>"test",2=>"test2"); $array[1]=&$array; $array[2]=&$array[1]; $array[2]=$array[1]; print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SSCdN
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $2      !0, 1
          2        ASSIGN_REF                                               $2, !0
    4     3        FETCH_DIM_W                                      $5      !0, 1
          4        MAKE_REF                                         $6      $5
          5        FETCH_DIM_W                                      $4      !0, 2
          6        ASSIGN_REF                                               $4, $6
    5     7        FETCH_DIM_R                                      ~9      !0, 1
          8        ASSIGN_DIM                                               !0, 2
          9        OP_DATA                                                  ~9
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.63 ms | 1394 KiB | 15 Q