I have compiled PHP 7.0 main new features, php7.0 new features _php tutorial

Source: Internet
Author: User
Tags configuration php integer division php error php latest version

I have compiled PHP 7.0 main new features, php7.0 new features


So far, PHP has officially released the RC5 version of PHP7, which is expected to release the first official version around November! For now, PHP7 's major features are definitely in shape and there will be no more changes. Some of the iterations that follow are mainly fixes, optimizations and the like. Let's talk about the new features we've been looking forward to php7.0.

1. Scalar parameter type declaration

String, Integer (int), floating-point (float), and Boolean (bool) parameter declarations are now supported, which previously only supported class names, interfaces, arrays, and callable
Two styles: Forced conversion Mode (default) and strict mode

2. return type declaration

3.?? Operator

?? Used to replace the need for isset, which is a syntactic sugar.

4.<=> comparison Operators

is to look at the size of two expression values, three relationships: = return 0, < return-1, > return 1

5.define supports defining values for array types

PHP 5.6 already supports const syntax to define constants for array classes, and define syntax is supported in PHP7.

6. Anonymous class

7. Added the integer division function intdiv

Summary:

PHP 7 's performance breakthroughs have become one of the hottest topics recently, and the official PHP 7.0.0 Beta 2 has been released

New features

Performance boost: PHP 7 is twice times faster than PHP 5.6

Comprehensive and consistent 64-bit support

Removed some old sapi that are not supported (server-side application programming ports) and extensions

Added an empty join operator (??)

Articles you may be interested in:

    • Win2008 R2 IIS7 PHP 5.4 Environment Construction Graphic Tutorial
    • win2008 R2 under iis7.5+php5.2.17+mysql5.5.16+zend3.3.3
    • Win7 Scheduled Tasks execute PHP script Setup plots
    • Imagick and ImageMagick extension tutorials for installing PHP under Windows7
    • PHP-SSH2 extension Tutorial for installing PHP under Windows7
    • PHP error allowed memory size of 67108864 bytes exhausted 3 ways to resolve
    • iis7,iis7.5 workaround for site slowdown after upgrading PHP5.3
    • IIS7 Configuring PHP Plots (iis7+php_5.2.17/php_5.3.5)
    • Win7 64-bit system configuration PHP latest Version development environment (PHP+APACHE+MYSQL)
    • The problem of the invisible character 65279 (Utf-8 BOM header) in PHP
    • WIN7 64-bit system PHP connection to Oracle Database
    • An in-depth analysis of the new features of PHP7.0 (five features)

http://www.bkjia.com/PHPjc/1089589.html www.bkjia.com true http://www.bkjia.com/PHPjc/1089589.html techarticle I have compiled the main new features of PHP 7.0, php7.0 new features so far, PHP has officially released the RC5 version of PHP7, it is expected to release the first official version around November! Now ...

  • Related Article

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.