Home >Backend Development >PHP Tutorial >Migrate PHP version to PHP7_PHP tutorial

Migrate PHP version to PHP7_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:07:45931browse

Migrate PHP version to PHP7

This article mainly introduces the method of migrating PHP version to PHP7. Friends who need it can refer to it

Today I saw on Weibo that phpng, which is php7, has been 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.

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:

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

迁移PHP版本到PHP7  帮客之家

 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 testing. You can test it yourself

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/954521.htmlTechArticleMigrating the PHP version to PHP7 This article mainly introduces the method of migrating the PHP version to PHP7. Friends who need it can refer to it. Today I saw on Weibo that phpng, which is php7, has been merged into master. Big...
Statement:
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