Well a php file (that isn't a library, so one that produces output) is one of the things that you could write to be a lambda function. But not every lambda function can be expressed as a php file. So I could download some video filtering lambda functions and they can be written in anything, then I can link them against my application, which I write in PHP.
The language/platform/dependency freedom is what takes it from literal CGI script to lambda function.