Hi, @rameiras23, what @gregraven says is correct. We have more about this in this support guide topic:
To summarize, you can use PHP during the site build only. There is no PHP application server running for the deployed site so this code won’t be run with our service.
Please let us know if there are other questions about this.