3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1); $r = &$arr[0]; $copy = $arr; unset($r); $copy[0]++; var_dump($arr); $arr2 = array(1); $r2 = &$arr2[0]; $copy2 = $arr2; $copy2[0]++; unset($r2); var_dump($arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iOC9I
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr, !1 = $r, !2 = $copy, !3 = $arr2, !4 = $r2, !5 = $copy2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $7      !0, 0
          2        ASSIGN_REF                                               !1, $7
    5     3        ASSIGN                                                   !2, !0
    6     4        UNSET_CV                                                 !1
    7     5        FETCH_DIM_RW                                     $10     !2, 0
          6        PRE_INC                                                  $10
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   10    10        ASSIGN                                                   !3, <array>
   11    11        FETCH_DIM_W                                      $14     !3, 0
         12        ASSIGN_REF                                               !4, $14
   12    13        ASSIGN                                                   !5, !3
   13    14        FETCH_DIM_RW                                     $17     !5, 0
         15        PRE_INC                                                  $17
   14    16        UNSET_CV                                                 !4
   15    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1013 KiB | 14 Q