Nope
.
The very first performance tip recommends against it, and it’s generally considered to be bad style to rely on global variables in any programming language, since they make the flow of information in your code harder to understand.
Independent of performance issues, the manual says:
Passing arguments to functions is better style. It leads to more reusable code and clarifies what the inputs and outputs are.
and I am inclined to agree.