3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1394 KiB | 15 Q