This article covers PHP 6, including the status of its development, features, release date and download. There’s a section on each topic below. Links to PHP downloads and source code are included.
I’ve updated this article to include the effects of the release of PHP 5.4 and the timelines of the new PHP release process.
PHP 6′s Status
Several books have already been written and published about PHP 6, such as Professional PHP6 by Edward Lecky-Thompson & Steven Nowicki. Despite this, PHP6 does not exist yet. There is no PHP 6 beta or even alpha. PHP 6 does not exist.
To see that PHP 6 doesn’t exist yet, see PHP’s official Subversion page. Subversion, or
svn, is the source code control software used for the development of PHP. There are instructions for getting the code for PHP 5.3 or 5.4, but not for any newer version:
PHP 5.3: svn checkout http://svn.php.net/repository/php/php-src/branches/PHP_5_3 php-src-5.3 PHP 5.4: svn checkout https://svn.php.net/repository/php/php-src/branches/PHP_5_4 php-src-5.4
As you can see here from the branches in the PHP source code the newest branch is PHP_5_3:
FIRST_UNICODE_IMPLEMENTATION/ 296285 16 months derick - Committing my session cookie patch; it's a bug fix and good to have in the h… ... PHP_4_4/ 295390 16 months derick - Set-up externals for the Zend engine so 4.4 can at least be build from SVN a… PHP_5_0/ 284180 2 years gwynne one more attempt at ridding us of some of those annoying mime types PHP_5_1/ 284180 2 years gwynne one more attempt at ridding us of some of those annoying mime types PHP_5_2/ 311125 2 months dmitry Fixed crash on recursive error handler invocation PHP_5_2_WITH_DRCP/ 284180 2 years gwynne one more attempt at ridding us of some of those annoying mime types PHP_5_3/ 313616 31 hours scottmac When we have a blocking SSL socket, respect the timeout option. reading from SS… PHP_5_4/ 313646 3 hours stas No E_STRICT in production
(Older code branches omitted for brevity.)
There’s no PHP 6 code branch yet. Notice the
FIRST_UNICODE_IMPLEMENTATION branch – the story behind this code branch, and why it delayed PHP 6 follows.
What does exist is an official todo for PHP 6, authored by Andrei Zmievski, which includes a rough list of PHP 6 features in the PHP Wiki.
UPDATE 21 July 2011: Now the PHP 5.4 Alpha has been released, a PHP 6 branch may exist for PHP’s developers without showing up on PHP’s public subversion. The code for PHP 5.4 did not show up on the sites above until the PHP 5.4 Alpha was released.
Reasons for Delays to PHP 6
The reasons for the delay to PHP 6 appear to be:
- Issues with Unicode support: The development team initially decided to use UTF-16 internally in PHP 6. This causes double memory usage for strings, more CPU usage and increased complexity of coding PHP 6. Using UTF-16 apparently took a lot of fun out of developing PHP, caused tension amongst PHP’s developers and slowed development. The choice to use UTF-16 was aborted by Rasmus Lerdorf, creator of PHP, in 2010. The developers restarted the Unicode implementation.
- PHP 5.3 took some PHP 6 features: PHP 5.3 included many of the features slated as desirable for PHP 6. This removed a lot of momentum for PHP 6.
- High Hopes: PHP 6 is a major version number change. It’s possible in a major release to make significant changes, including making breaks from the past. Agreeing and delivering major changes can take some time.
- Feature Set Not Finalized: Agreement hasn’t been reached on the features in PHP 6.0.
- Lack of Urgency: PHP works very well. There are no burning issues forcing the release of PHP 6.
- PHP 5.4 takes some PHP 6 features: Rasmus Lerdorf previously stated, when he scrapped PHP 6′s original Unicode implementation, that there may be a PHP 5.4 yet, or PHP may go straight to version 6. Jani Taskinen created a PHP 5.4 development branch on 11 March 2010, but this appears to be due to frustration as being able to move PHP’s development forward. The PHP 5.4 code branch is no longer there. There is however an official PHP 5.4 todo wiki, with Stanislav Malyshev as the tentative release manager. So it looks there will be PHP 5.4, which would push out the PHP 6.0 release further. UPDATE on 24 July 2011: The PHP 5.4 Alpha has been released, and it includes some features originally targeted for PHP 6.0, such as traits and the removal of register_globals and safe_mode.
PHP 6 Features
The likely set of PHP6 features is:
- Internationalization: Native Unicode – UTF-8 – to the core (strings, APIs).
- Performance: Page level (opcode) caching through moving Alternative PHP Cache (APC) into the PHP core. Native application caching.
- Break to label: Sending a break to a label (like a goto).
- Enhanced array indexing: Array indexing can be used to substring or take an array slice.
- Removed features: Magic quotes will be removed.
The are quite a few more minor features and changes in PHP 6.
PHP 6 Download
You cannot download PHP 6 yet. There is no PHP6 download available. When a PHP 6 download becomes available I will post the download link here.
The current production release of PHP is 5.3.6. PHP 5.3 can be downloaded from php.net/downloads.php.
An alpha version of PHP 5.4 is also available.
Once the PHP 6 alpha is released, snapshots of the development code will likely become available from snaps.php.net.
PHP 6 Release Date
There is no PHP6 release date set. PHP 5.4 is only just being released now.
There is a PHP release process which has been accepted by a team vote. The release process stipulates:
Beginning on June 28th, 2011, the PHP Group began following a timeline for when new versions of PHP will be released.  Under this timeline, at least one release should occur every month. Every one year, a minor release should occur which can include new features.
(Source: “PHP” on Wikipedia.)
This means minor releases, such as PHP 5.4 to PHP 5.5 are now scheduled yearly. The timeline shown in the PHP release process also shows the PHP 6 release occurring in sync with this one year cycle.
Given the PHP 5.4 release is expected on 27 July 2011, the most likely date for the production PHP 6 release is one year after the PHP 5.4 release: late July or early August 2012.
If the PHP team do decide to release PHP 6 in 2012 (rather than just PHP 5.5) according to the release process we’d expect to see the first PHP 6 alpha in June 2012.
PHP 6 Hosting
People are already looking for PHP 6 hosting. As PHP 6 doesn’t exist, there are no PHP 6 hosting providers yet.
PHP is the defacto website programming language provided by web hosting companies. Some web hosting companies will be eager to provide an option for PHP 6 shortly after its release to be on the “cutting edge”.
PHP 6 will become more widely available as the popular hosting control panel vendors, such as cPanel and Plesk built in PHP 6 support.
If you have a virtual private server or a dedicated server, you will of course be able to install PHP 6 yourself.
Something to add? Comments, questions, feedback, more information – please comment below.