3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 1; $$test = 2; ${'t e s t'} = 3; var_dump($test, $$test, ${'t e s t'}); $test = 4; var_dump($$test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pl2uZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test, !1 = $t e s t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        FETCH_W                      local               $3      !0
          2        ASSIGN                                                   $3, 2
    4     3        ASSIGN                                                   !1, 3
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        FETCH_R                      local               ~6      !0
          7        SEND_VAL                                                 ~6
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        ASSIGN                                                   !0, 4
    7    11        INIT_FCALL                                               'var_dump'
         12        FETCH_R                      local               ~9      !0
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.88 ms | 1394 KiB | 15 Q