3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'a'; $oldArray = [&$var]; $newArray = $oldArray; $newArray[0] = 'b'; var_dump($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cohI0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $oldArray, !2 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a'
    4     1        INIT_ARRAY                                       ~4      !0
          2        ASSIGN                                                   !1, ~4
    5     3        ASSIGN                                                   !2, !1
    6     4        ASSIGN_DIM                                               !2, 0
          5        OP_DATA                                                  'b'
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1008 KiB | 14 Q