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! $arr2[0]++; var_export($a); var_export($arr); var_export($arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hThjs
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $a, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $4      !0, 0
          2        ASSIGN_REF                                               !1, $4
    4     3        ASSIGN                                                   !2, !0
    5     4        FETCH_DIM_RW                                     $7      !2, 0
          5        PRE_INC                                                  $7
    6     6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1394 KiB | 15 Q