Migrate PHP versions to PHP7

Source: Internet
Author: User
Tags git clone

This article mainly introduces the migration of PHP version to the PHP7 method, the need for friends can refer to the

Today, I saw the micro-blog said Phpng is PHP7 merged into master, we all know that I am more like to explore the latest version of things to see what the characteristics, I can not help but upgrade to the previous version of my PHP is 5.5.19, and then I began.

The code is as follows:

Yum Install git

git clone https://github.com/php/php-src.git

Then compile the configuration parameters, my blog server is Tencent Cloud Server, because the blog is relatively low configuration. As follows:

The code is as follows:

Single-core Intel (R) Xeon (r) CPU e5-2630 v2 @ 2.60GHz

Memory 2G

Below is for the php5.5 and phpng version of the test, of course, I this is online, but also by the network environment interference, we look at the benchmark is wrong ha.

My test simulation was then started with 100 concurrent, 100 requests for AB pressure measurement



PHP5 's QPS is 2.09.

PHP7 's QPS is 3.67.

Of course, at the time of the test, when the maximum load of the PHP5 3.0,PHP7 2.05, of course, it is still php7-dev

So the performance of PHP7 can be seen, but my server configuration does not give force test this result, you can test yourself to see

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.