Home / PHP / PHP 7 – What’s New & The Nitty Gritty Technical Details

PHP 7 – What’s New & The Nitty Gritty Technical Details

As you may have read on our June 29th blog post, the alpha version of PHP 7 was released. Since that post was published, PHP released the first beta version of PHP. We know that PHP 7 has a clear cut focus on performance. Let’s look at some of the contributing elements to those performance improvements and the other enhancements included with PHP 7.

*The Spaceship Operator/Combined Comparison Operator (<=>) – Similar to a TIE fighter, the Spaceship Operator can be used for combined comparisons, largely when working with sorting.

*PHPNG – PHP 7 is based on the PHPNG project (PHP Next-Gen). This is one of the largest reasons for the faster performance seen with PHP 7. The early word is that PHP 7 is twice as fast as PHP 5.6.

*Functions – Much like Type Hints, developers can declare what sort of return type a function is expected in PHP 7.

*Consistent support of 64-bit.

*Return and Scalar Type Declarations

*Many of the fatal errors are now just exceptions

Remember that A2 Hosting offers PHP 7 Hosting on our Turbo Servers. This is your opportunity to get your heads on the latest version of PHP. Just keep in mind this is a beta version and we cannot guarantee compatibility with your applications.

About Brad Litwin

Brad Litwin is the Marketing Manager for A2 Hosting. He has been with the company since 2007. His specialties include affiliate marketing, content writing and SEO. In his spare time he enjoys running and reading.

Check Also

PHP 7 vs HHVM

If you are not a developer, you probably aren't familiar with HHVM and PHPNG. If you're hosting your site with A2 Hosting though, it's more than likely your site is powered by PHP. The beta version of PHP 7 was just released on Friday so it doesn't hurt to learn how this new version of PHP can dramatically increase the performance of your site. First we need to step back about 7 years and look at another project called HHVM to get a better idea of the direction of PHP 7 and why PHP developers focused on certain features in this version.