To configure a remote PHP interpreter, open the Languages & Frameworks | PHP settings/preferences page.

Then click the browse button, in the CLI Interpreters window click Add and choose the From Docker, Vagrant, VM, Remote... option.

You can use this remote interpreter in your project, or leave it as one of the available interpreters.