I have some arrays storing the possible parameters for some 3D printer commands. I use this to check if the command is legal. I am confused about where I should put these ar
If you are really looking into understanding how code performance can be measured, you should get familiar with Big-O notation.
What is Big-O? Big-O cheat sheet
Other than that, define them as protected class base properties for static data.
class foo { protected static $bar = array(); }