3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.96 ms | 1392 KiB | 13 Q