3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = array(2, 3); $arr = array(&$a, &$b[0], &$b[1]); $arr[0]++; $arr[1]++; echo $a; echo $b; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UhfUL
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_ARRAY                                       ~5      !0
          3        FETCH_DIM_W                                      $6      !1, 0
          4        ADD_ARRAY_ELEMENT                                ~5      $6
          5        FETCH_DIM_W                                      $7      !1, 1
          6        ADD_ARRAY_ELEMENT                                ~5      $7
          7        ASSIGN                                                   !2, ~5
    5     8        FETCH_DIM_RW                                     $9      !2, 0
          9        PRE_INC                                                  $9
         10        FETCH_DIM_RW                                     $11     !2, 1
         11        PRE_INC                                                  $11
    6    12        ECHO                                                     !0
    7    13        ECHO                                                     !1
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.16 ms | 1393 KiB | 13 Q