PHP 7 now available on Heroku
Change effective on 11 December 2015
PHP versions 7.0.0 and 5.6.16 are now available on Heroku.
For applications declaring a requirement for package php
in their composer.json
, PHP 7 will automatically be installed upon next push, provided that all version selectors for package php
in composer.lock
are sufficiently lenient, and all required extensions are available for PHP 7. For example, the following composer.json
will result in the installation of PHP 7:
{
"require": {
"php": ">=5.3.3"
}
}
The ext-blackfire
and ext-newrelic
extensions will not be auto-enabled for applications running PHP 7 as these extensions are only compatible with PHP 5.
Customers who wish to remain on PHP 5 are advised to use a suitably restrictive version selector in composer.lock
, e.g.:
{
"require": {
"php": "^5.6.16"
}
}
The default runtime version for applications that do not use composer.json
remains the latest release of PHP 5.
For a complete list of supported runtimes and extensions, please refer to the PHP Support article on Dev Center.
The following extensions for PHP 5 have also been updated:
-
ext-apcu
(version 4.0.10) -
ext-blackfire
(version 1.7.0) -
ext-imagick
(version 3.3.0) -
ext-mongo
(version 1.6.12)
The ability for PHP applications to concurrently install the PHP and HHVM runtimes by specifying version selectors for both the “php” and “hhvm” packages in composer.json
has been removed.