3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dfgg = '1'; //$GLOBALS = array('dfgg' => 1,'eEhF' => 2); $GLOBALS = array(); 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/vngeO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $dfgg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    5     1        FETCH_W                      global              $2      'GLOBALS'
          2        ASSIGN                                                   $2, <array>
   10     3        INIT_FCALL                                               'd'
          4        DO_FCALL                                      0          
   12     5        INIT_FCALL                                               'print_r'
          6        FETCH_R                      global              ~5      'GLOBALS'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function d

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 1397 KiB | 16 Q