3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo['bar'] = 'key'; $arr = array($foo['bar'] => 'test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vP2Zg
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'bar'
          1        OP_DATA                                                  'key'
    3     2        FETCH_DIM_R                                      ~3      !0, 'bar'
          3        INIT_ARRAY                                       ~4      'test', ~3
          4        ASSIGN                                                   !1, ~4
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.59 ms | 1392 KiB | 13 Q