3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.68 ms | 1394 KiB | 15 Q