3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1392 KiB | 13 Q