3v4l.org

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

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvPTE
function name:  d
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_W                      global              $0      'GLOBALS'
          1        ASSIGN_DIM                                               $0, 'dfgg'
          2        OP_DATA                                                  3
    7     3        FETCH_W                      global              $2      'GLOBALS'
          4        ASSIGN_DIM                                               $2, 'eEhF'
          5        OP_DATA                                                  4
    8     6      > RETURN                                                   null

End of function d

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.28 ms | 1397 KiB | 16 Q