And, there is no difference as this function will be called along side again and again either if it's out the loop.
There is a difference because variables are faster than functions. But in this case you already have the function parameter so you might as well use it.