3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.77 ms | 1392 KiB | 13 Q