Features of upcoming version of PHP

PHP 7 will be the latest version of php and will release very soon (projected release date of November 2015).

Time line for php 7: –

Proposed Milestones
Milestone Timeline Comment
1. Line up any remaining RFCs that target PHP 7.0. Now – Mar 15 (4+ additional months) We’re already well under way with doing that, with the PHPNG, AST, uniform variable syntax, etc.
2. Finalize implementation & testing of new features. Mar 16 – Jun 15 (3 months)
3. Release Candidate (RC) cycles Jun 16 – Oct 15 (3 months) Subject to quality!
4. GA/Release Mid October 2015 Subject to quality!

Some very cool features of PHP 7 are: –

      1. PHP SPACE SHIPS

PHP 7 will introduce a new operator <=> conveniently similar to a TIE fighter and dubbed the Spaceship Operator. It can be used for combined comparisons – mostly when dealing with sorting.

      2. DECLARATIONS & SCALER TYPE HINTS

PHP 7 will allow developers to declare what kind of return type a function is expected to have – similar to argument Type Hints.

In addition, argument type hints and the new return-type declarations now support new scalar types, allowing developers to denote that they’re expecting strings, floats, ints or bools to be passed or returned.

     3. PHP 7 PERFORMANCE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s