3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; $key = 'oele'; $arr[$key] = 'boele'; $key[1] = 'X'; print_r($arr); var_dump($key);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSu9L
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'oele'
    4     2        ASSIGN_DIM                                               !0, !1
          3        OP_DATA                                                  'boele'
    5     4        ASSIGN_DIM                                               !1, 1
          5        OP_DATA                                                  'X'
    7     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.84 ms | 1394 KiB | 17 Q