3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $x = a['b']; $$x = 'test'; var_dump($$x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AOPPc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_CONSTANT                                   ~3      'a'
          2        FETCH_DIM_R                                      ~4      ~3, 'b'
          3        ASSIGN                                                   !1, ~4
    4     4        FETCH_W                      local               $6      !1
          5        ASSIGN                                                   $6, 'test'
    5     6        INIT_FCALL                                               'var_dump'
          7        FETCH_R                      local               ~8      !1
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
274.33 ms | 1394 KiB | 16 Q