3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo['ten'] = 10; // $foo['ten'] is an array holding an integer at key "ten" $str = "{$foo['ten']}"; // works "10" $str = "$foo[ten]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k27u7
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'ten'
          1        OP_DATA                                                  10
    4     2        FETCH_DIM_R                                      ~3      !0, 'ten'
          3        CAST                                          6  ~4      ~3
          4        ASSIGN                                                   !1, ~4
    5     5        FETCH_DIM_R                                      ~6      !0, 'ten'
          6        CAST                                          6  ~7      ~6
          7        ASSIGN                                                   !1, ~7
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.86 ms | 1392 KiB | 13 Q