3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1); $a =& $arr[0]; //$a and $arr[0] are in the same reference set $arr2 = $arr; //not an assignment-by-reference! var_dump($arr2); $arr2[0]++; var_dump($arr2); var_dmp($a); $arr[0]++; var_dump($arr2); var_dump($arr); var_dmp($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NWYmI
function name:  (null)
number of ops:  27
compiled vars:  !0 = $arr, !1 = $a, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $4      !0, 0
          2        ASSIGN_REF                                               !1, $4
    5     3        ASSIGN                                                   !2, !0
    6     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                                 
    7     7        FETCH_DIM_RW                                     $8      !2, 0
          8        PRE_INC                                                  $8
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   10    12        INIT_FCALL_BY_NAME                                       'var_dmp'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
   12    15        FETCH_DIM_RW                                     $12     !0, 0
         16        PRE_INC                                                  $12
   14    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
   15    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   16    23        INIT_FCALL_BY_NAME                                       'var_dmp'
         24        SEND_VAR_EX                                              !1
         25        DO_FCALL                                      0          
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1395 KiB | 15 Q