DEV Community

Discussion on: What is serverless PHP and how does it work?

Collapse
lito profile image
Lito

AWS support PHP natively: aws.amazon.com/blogs/compute/intro...

Also, support PHP as functions as containers: aws.amazon.com/blogs/compute/build...

Collapse
andreidascalu profile image
Andrei Dascalu

I guess it depends on what do you mean by natively. You need a custom runtime definition to make PHP work with Lambda. It's been the case for a while - in fact ever since AWS introduced custom runtimes (but you need to provide your own_.

That's not the case in GCP. In GCP, PHP is provided as a first-citizen runtime (PHP 7.4 at the moment).

Basically, if you go to their respective consoles, is PHP listed? If no, then it's not "natively supported".