下载指定版本 https://www.php.net/releases/
编译
./configure –prefix=/usr/local/php71 –exec-prefix=/usr/local/php71 –bindir=/usr/local/php71/bin –sbindir=/usr/local/php71/sbin –includedir=/usr/local/php71/include –libdir=/usr/local/php71/lib/php –mandir=/usr/local/php71/php/man –with-config-file-path=/usr/local/php71/etc –with-mcrypt=/usr/local/libmcrypt –with-mhash –with-openssl –with-mysqli=/usr/local/mysql/bin/mysql_config –with-pdo-mysql=/usr/local/mysql –with-gd –with-iconv –with-zlib –enable-inline-optimization –disable-debug –disable-rpath –enable-shared –enable-xml –enable-bcmath –enable-shmop –enable-sysvsem –enable-mbregex –enable-mbstring –enable-ftp –enable-gd-native-ttf –enable-pcntl –enable-sockets –with-xmlrpc –enable-soap –without-pear –with-gettext –enable-session –with-curl –with-jpeg-dir –with-freetype-dir –enable-fpm –without-gdbm –disable-fileinfo –enable-opcache=no