PHP 7 beta now available on Heroku

Change effective on 10 July 2015

The first beta of the new major PHP release series, 7.0.0 beta 1, is now available on Heroku.

To opt into the new version, use a suitable version selector in composer.json, either by specifying version 7.0.0beta1 directly, or using a stability flag; for example:

  "require": {
    "php": "~7.0@beta"

Make sure to run composer update to re-generate composer.lock; if you do not yet have PHP 7 installed on your computer, you can use composer update --ignore-platform-reqs to prevent any errors thrown by Composer about the (obviously) missing PHP 7 platform package.

The mysql extension has been removed from PHP 7 and is no longer available. Unlike in PHP 5.5 and 5.6 (where it’s enabled by default) the mcrypt extension is built as a shared extension in PHP 7 and has to be explicitly enabled via composer.json.

No third-party extensions like mongo or redis are currently supported; the Blackfire and New Relic add-ons have also not yet been updated to support PHP 7.

PHP 7 is available on the new cedar-14 stack only.

For more details on what’s supported in this beta version of PHP 7, please refer to the PHP Support article on Dev Center.