3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableName = 'MyVariable'; #$variableName .= '900'; // Create new variable with the name defined in variable $variableName ${$variableName} = 'MyValue'; ${$variableName} .= '900'; //Outputs: string(7) "MyValue" var_dump($MyVariable); //Outputs: string(7) "MyValue" var_dump(${'MyVariable'});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lf3Yo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $variableName, !1 = $MyVariable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'MyVariable'
    5     1        FETCH_W                      local               $3      !0
          2        ASSIGN                                                   $3, 'MyValue'
    6     3        FETCH_RW                     local               $5      !0
          4        ASSIGN_OP                                     8          $5, '900'
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.49 ms | 1398 KiB | 15 Q