We already have php files handled through the Apache PHP module. So just upload your file and navigate your browser to the path and you should see the processed php as you did in localhost.
We provide a shared web hosting service. That means we control the server software stack that your website runs on. It’s our responsibility to provide a hosting platform that’s fast, reliable and secure. You can be sure that the platform is managed by experts so you don’t need to worry about the details.
The flip side of is that you cannot choose the software stack yourself. We use (I think) Apache with mod_php on the backend with an NGINX in front. We don’t use PHP-FPM, PHP-FPM is not installed on our servers and you cannot install it yourself. You can configure some things in Apache with .htaccess files, but not core settings like how PHP code is executed.