Moodle 4.1...
"PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x and 8.1.x are supported too"
PHP 7.4, 8.0 and 8.1 are supported. Nothing else is.
Moodle 4.5....
"PHP version: minimum PHP 8.1.0 Note: minimum PHP version has increased since Moodle 4.3. PHP 8.3.x is supported too"
So, 8.1, 8.2 and 8.3 are supported. Nothing else is.
"PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x and 8.1.x are supported too"
PHP 7.4, 8.0 and 8.1 are supported. Nothing else is.
Moodle 4.5....
"PHP version: minimum PHP 8.1.0 Note: minimum PHP version has increased since Moodle 4.3. PHP 8.3.x is supported too"
So, 8.1, 8.2 and 8.3 are supported. Nothing else is.