Note that the ReflectionFunctionAbstract::getParameters() method will return the parameters in the correct order.
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
ReflectionParameter::getPosition — Gets parameter position
This function has no parameters.
The position of the parameter, left to right, starting at position #0.
Note that the ReflectionFunctionAbstract::getParameters() method will return the parameters in the correct order.