3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO_BAR = [1, 2, 3] + ['a' => 'abc']; var_dump(FOO_BAR); var_dump(FOO_BAR['a']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e7I5D
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'FOO_BAR', <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CONSTANT                                   ~0      'FOO_BAR'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~2      'FOO_BAR'
          7        FETCH_DIM_R                                      ~3      ~2, 'a'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.4 ms | 1385 KiB | 15 Q