3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.96 ms | 2762 KiB | 9 Q