Can PHP7 be used directly in production now?

WBOY
Release: 2016-07-06 13:51:58
Original
963 people have browsed it

The company is now going to configure a new server. I heard that PHP7 is very efficient now, but I don’t know if PHP7 can be used directly in the production environment. Are there any bugs or potential loopholes? ? ?

Reply content:

The company is now going to configure a new server. I heard that PHP7 is very efficient now, but I don’t know if PHP7 can be used directly in the production environment. Are there any bugs or potential loopholes? ? ?

The projects developed by myself in my company are based on PHP7.
Based on my experience, I would like to give you a few issues you need to pay attention to when migrating to PHP7.

  1. Some special usages or functions are obsolete in PHP7.
    If your project is written by yourself and does not rely on external frameworks at all, it is relatively easy for you to know whether these abandoned functions are used. But if your project depends on a framework, especially an old version of the framework, or an external library (such as a database class that relies on the mysql_* function), then you need to know whether the framework itself is compatible under PHP7. This is more It’s cumbersome. Especially if you are not upgrading from 5.6, you need to pay special attention to the fact that there are incompatible things when upgrading from the current version to 5.6.

  2. Externally dependent extensions may not start to support or support PHP7 very well
    The PHP7 version of redis has been released, but whether your own project depends on some other extensions also needs to be checked one by one.

Reference materials

  1. PHP7 backwards-incompatible changes

There are definitely bugs. I can’t say there are no potential vulnerabilities, at least none have been discovered so far.

A lot of applications have already been launched on PHP7, including Weibo. My personal project https://laravist.com is also a project under PHP7. The performance has really improved a lot, so don’t worry, just use it

Go directly and you will know after experiencing it

You can try it, I saw that php7 was being promoted at the developer conference

No problem at all. If you don’t believe me, you can ask Brother Bird.

Feel free to use it boldly. Brother Bird said there was a bug and he fixed it directly.

I have been using PHP7 for my business projects for a long time without any problems.

Girls

My blog has been upgraded when php7 was just released
The company’s production environment has not been upgraded yet
New projects can use php7. It is the trend to upgrade php7 in the future

The newer the version, the more unstable it is

Related labels:
php
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