3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1392 KiB | 13 Q