3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1); $c =& $a[0]; $b = $a; var_dump($b); $a[0] = 2; var_dump($b); unset($c); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HMDZm
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $c, !2 = $b
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        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                                 
    6     7        ASSIGN_DIM                                               !0, 0
          8        OP_DATA                                                  2
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    8    12        UNSET_CV                                                 !1
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 939 KiB | 16 Q