3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.67 ms | 1385 KiB | 17 Q