WIP on PHP internal classes & functions

To be continued ...