Install Remi Release repo and clear cache:
dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm && dnf clean all
Install PHP packages version 7.3 and/or 7.4:
dnf -y install php73-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,mbstring,imagick}
dnf -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,mbstring,imagick}
ça peut être PHP7.2
dnf -y install php72-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,mbstring,imagick}