Here is an overview of code constructs that go into the global namespace:
functions
classes
interfaces
constants (not class constants)
variables defined outside of functions/methods