Unixcop published a tutorial about installing PHP 7.4 on CentOS 8 or RHEL 8.
How to Install PHP 7.4 on CentOS 8 | RHEL 8
In this article, we will illustrate how to install PHP 7.4 on CentOS 8 and RHEL 8. Introduction PHP is a general-purpose scripting language geared towards web development. The PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.
How to Install PHP 7.4 on CentOS 8 | RHEL 8