Help Rasmus Lerdorf to Polish PHP 7

| June 18, 2015

PHP 7 is scheduled to be released later this year. Here’re some facts you need to know, sourced from our friends at Zend:

2015The latest PHP version will be released later this year

The PHP 7 Timeline RFC was approved in a near unanimous vote, and aims to release PHP 7 in October 2015. Even if it’s delayed a bit, we’re still likely to see it before the year is out!!

The final feature set for PHP 7 is almost completely finalized, and will officially close by the end of March.


 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.

scalarReturn Type Declarations & Scalar 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.

performancePHP 7 Performance

PHP 7 is based on the PHPNG project (PHP Next-Gen), that was led by Zend to speed up PHP applications.

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!

PfasterHP 7 is 2X Faster

Since PHPNG was open sourced and later merged into PHP 7, its performance more than doubled in many cases, and we’re continuing to improve it all the time.

To put things in perspective – when PHPNG was published, the WordPress homepage required approx. 9.4 billion CPU instructions to execute.  As of now – it requires only 2.6 billion – that’s 72% less!

Help with Testing

Rasmus Lerdorf (creator of PHP) is currently testing PHP 7 and he’s asked for some help via Twitter.


You can participate in testing PHP 7.

PHP Version Distribution in Jelastic for May

We sourced all of the PHP users across all Jelastic hosting partners and regions, and worked out the percentages per version. PHP 4 is the uncontested winner when it comes to popularity.



Our plan is to add PHP 7 as soon as we achieve successful test results from our team and our community.

Using Docker with PHP 7

As we don't support PHP 7 natively yet, Docker is a solution for those who'd like to use it in Jelastic. Below is a simple instruction on how to run Docker with PHP 7, currently supported by the following Jelastic hosting partners:

1.Log in to the Jelastic dashboard and click the New environment button at the top left. Choose the Docker tab and click on the Select Container button:

2.In the opened window use Search on Hub Registry and find the following docker template: jelastic/apache-php7


3.Select this PHP 7 docker template and click Add.


4.State the resource limits and environment name. Then click Create.


In a few minutes your environment with Docker PHP 7 will be created and appear in the environment list.


5. Click Open in browser to check that everything is working.


Now you have your own Docker PHP 7 solution running in Jelastic Cloud. Enjoy!

If you'd like to test this out for yourself, simply sign up for a free two-week trial and be sure to select one of the above mentioned hosting providers that currently support this Docker solution.