3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = []; ['foo' => &$v] = $arr; $v = 1; var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yjknn
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr, !1 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        MAKE_REF                                             $3      !0
          2        FETCH_LIST_W                                         $4      $3, 'foo'
          3        MAKE_REF                                             $5      $4
          4        ASSIGN_REF                                                   !1, $5
          5        FREE                                                         $3
    5     6        ASSIGN                                                       !1, 1
    6     7        INIT_FCALL                                                   'var_export'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.86 ms | 1584 KiB | 14 Q