First PHP 7 Beta Released
Written by Kay Ewbank   
Monday, 20 July 2015

The first beta of PHP 7 has been released, marking the next version as feature complete.

phplogo

PHP is a language that has evolved from a simple scripting language designed to build web pages programatically into a very general server side web language.

The new release has greatly improved performance and consistent 64-bit support. In language terms, a null coalescing operator has been added along with a combined comparison operator. Support for return type and scalar type declarations has also been added along with support for anonymous classes. The beta was delayed to catch up with the latest OpenSSL release issued on July 9.

If you’re wondering what happened to PHP 6.x, the answer isn’t particularly clear. As we detailed last year, there was a vote for the next version skipping the 6.x numbering and moving direct to 7. The reson is simply that PHP 6 was a failed project that never resulted in a release of the language - even though there where books telling you how to use it. 

This is still a development preview, and the php.net website announcement of the beta is emphasizing that this is a development preview not to be used in production. The announcement says:

“from now on, fundamental changes are not to be expected. What's more, this release brings over 200 commits with about 25 reported bug fixes, as well as security, stability and other improvements.”

PHP tools vendor Zend Technologies, which led the PHP Next-Gen project on which PHP 7 is based, says on its website:

“the performance gains realized from PHP 7 are huge! They vary between 25% and 70% on real-world apps, and all of that just from upgrading PHP, without having to change a single line of code.”

According to Andi Gutmans, Zend's CEO, the new version also has reduced memory requirements, around two-thirds of the original requirements, which means you may get three times the throughput as PHP 5.6.

The new combined comparison operator, <=>, has been dubbed the Spaceship Operator. It can be used for combined comparisons – mostly when dealing with sorting. It is similar to strcmp() or version_compare() in behavior, but it can be used on all generic PHP values with the same semantics as <, <=, ==, >=, >.

The support for return type declarations and scalar type hints means developers will be able to declare what kind of return type a function is expected to have in a similar way to argument Type Hints. Argument type hints and the new return-type declarations also now support new scalar types, so you can denote that you’re expecting strings, floats, ints or bools to be passed or returned.

The plan is to have a second beta release for July 23, with the final release slated for November 12.  

 

 

phplogo

More Information

PHP 7.0.0 Beta 1 Released

Download PHP 7 beta

Related Articles

The Next Version Of PHP And The Status Of PHPng

PHP At 20

PHP Gets A Formal Specification 

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, FacebookGoogle+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


Kotlin Ktor Improves Client-Server Support
04/11/2024

Kotlin Ktor 3 is now available with better performance and improvements including support for server-sent events and CSRF (Cross-Site Request Forgery) protection.



Random Gifts For Programmers
24/11/2024

Not really random. Not even pseudo random, more stuff that caught my attention and that I, for one, would like to be given. And, yes, if I'm not given them, I'd probably buy some for myself.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 20 July 2015 )