3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.05 ms | 1397 KiB | 13 Q