As said: the difference is next to zero even in theoretical nature.
Apart from that: php caches the compiled code (php is a "just-in-time compiler").
So in practice there is no difference.
(Except for the first ever call of that script)
I suggest you try that out yourself. Make such code and instantiate many objects, say 5 million objects. You take the time for both variants. Then you compare the two results you got.
Obviously you want to define the setup and initialization of your database connection only once, yes.
I would not place that in one parent class extended in all other classes, I would prefer to put it into a separate class by itself to keep separate things separate. But in the end that is a question of personal preferences.
The advantage of a separate class is that the database connection object will only be instantiated if it is actually required.
You always use only one single autoloader. Whenever a class is used the autoloader decides which file to load. So this is a question of your naming scheme. You always name the files where classes are defined such, that the autoloader can see where to look for the file based on the name of the class.
About the database connection: this is a bit a question of personal choice. Many patterns exist.
In general two are wide spread:
1. you derive from (extend) the basic database class (mysqli or PDO) to include whatever you need, for example the database credentials
2. you implement a wrapper around the inner database object. The wrapper maintains the inner object (instantiates it and controls its state) and relays all queries.
Both is possible, as said a question of personal taste.
If you currently do not use such a class, then how did you implement your database connection?
Since you derive your child classes from that father classes the array are automatically available in the child classes. That is the idea behind class hierarchies. Just access them as if you had implemented them as properties in the current child class.
One design hint: since those arrays hold exactly the same content for all child classes, so for all objects you create from the child classes, it makes sense to declare the arrays as shared properties of the parent class.
That way the arrays get created only once in memory and are shared between all objects.
I understand what is your mean, because always my friend tell me: "when you (I) speach, we (my friends) fell you are talking about assembly (Low-level programming)"
But the power behind C is, that although it is a high level language, it allows to implement code that is nearly as compact and efficient as with assembler.
As said: rarely.
Most firmware is implemented in C these days, not in assembler any more.
No hierarchy at all, since it is not required for this.
(sorry, I only realized after posting the first example)
As long as the catalog contains only static content, so const and static declared properties and static declared methods, there is no need to instantiate an object at all. You can directly access such static things via the class name. Perfect for configuration stuff.