参考:How To Install PHP 7.3 on CentOS 7 / Fedora
Step 1: Add PHP 7.3 Remi repository
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install epel-release yum-utils
Step 2: Disable repo for PHP 5.4
sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73
Step 3: Install PHP 7.3 on CentOS 7 / Fedora
sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel \
php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json \
libcurl-dev
Check version installed
参考:How to Update to PHP 7.4 from PHP 7.x on CentOS 7 - Stack Overflow,可以升级到7.4