3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '$lol'; $GLOBALS[$name] = 'wtf'; var_dump($GLOBALS);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h7GNl
function name:  (null)
number of ops:  9
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%24lol'
    6     1        FETCH_W                      global              $2      'GLOBALS'
          2        ASSIGN_DIM                                               $2, !0
          3        OP_DATA                                                  'wtf'
    8     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      global              ~4      'GLOBALS'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.35 ms | 1393 KiB | 15 Q