3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.94 ms | 1394 KiB | 15 Q