There is an official way to have these data: https://www.php.net/releases/states
An API that expose all PHP versions.
Install dependencies:
$ composer install
Use Symfony CLI to run server:
$ symfony serve
This project was created to play with PHP 8.0 and Composer 2.