3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1394 KiB | 15 Q