Description of the need

I'm not sure if it's a need, but it might be helpful in some cases. Feedback is welcome.

The SAPI is the type of interface between web server and PHP, something like apache2handler (=mod_php), cgi, cgi-fcgi, fpm-fcgi...

Proposed solution

Easy: collect PHP_SAPI values.

Alternatives that have been considered

Not collecting it :grinning:

Additional information

Function php_sapi_name() returns the same value.

GitHub Issue #: 
5449