Moved all PHP functions to a php global object.