sudo -i
wget http://hk2.php.net/distributions/php-7.2.7.tar.gz
tar -xvf php-7.2.7
cd php-7.2.7
./configure \
--prefix=/usr/local/php72 \
--with-config-file-path=/usr/local/php72/etc \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-opcache \
--enable-fpm \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mhash \
--with-openssl \
--enable-bcmath \
--enable-soap \
--with-libxml-dir \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-curl \
--with-zlib \
--enable-zip \
--with-bz2 \
--with-readline
make
make test
make install
/usr/local/php72/bin/php -v
ln -s /usr/local/php72/bin/php /usr/bin/php72
ln -s /usr/local/php72/bin/php /usr/bin/php
php -v