3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.97 ms | 1394 KiB | 15 Q