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...
Alternatives that have been considered
Not collecting it :grinning:
Function php_sapi_name() returns the same value.