Migrate PHP version to PHP7, Migrate PHP version to PHP7_PHP tutorial

WBOY
Release: 2016-07-13 10:07:44
Original
974 people have browsed it

Migrate PHP version to PHP7, Migrate PHP version to PHP7

Today I saw on Weibo that phpng, that is, php7, was merged into master. Everyone knows that I prefer to explore the latest version of things and see what features it has, so I couldn’t help but upgrade. In the past, I The PHP version was 5.5.19 and then I started.

Copy code 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 configuration is relatively low. As follows:

Copy code The code is as follows:

Single-core Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz
Memory 2G

The following is a test for php5.5 and phpNG versions. Of course, I am online and affected by the network environment. You can just take a look. The benchmark is wrong.

My test simulates the ab stress test of 100 concurrency and 100 requests

php5

php7

The QPS of php5 is 2.09
The QPS of php7 is 3.67

Of course during the test, the highest load of php5 was 3.0, and the highest load of php7 was 2.05. Of course, it is still php7-dev

So you can see the performance of PHP7, but my server configuration is not good enough for the test results. You can test it yourself

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/954662.htmlTechArticleMigrate PHP version to PHP7, migrate PHP version PHP7 Today I saw on Weibo that phpng, which is php7, was merged into master Up, everyone knows that I prefer to discuss the latest version of things, take a look...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template