3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.36 ms | 1394 KiB | 15 Q