3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MjEYQ
function name:  test
number of ops:  9
compiled vars:  !0 = $DATA
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_W                      global lock         $1      '_GET'
          1        FETCH_W                      global              $2      '_GET'
          2        ASSIGN_REF                                               $2, $1
    7     3        ASSIGN                                                   !0, '_GET'
    8     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      local               ~4      !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    9     8      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.19 ms | 1397 KiB | 16 Q