• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multi-framework
    • Security
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • Pricing
  • Overview
    Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Login
  • Request a demo
  • Free Trial

PHP versions 5.4, 5.5 and 5.6 supported

08 September, 2015
Augustin Delaporte
Augustin Delaporte
VP Product

Hi, I’m proud to announce that starting today, testing and deploying your applications on various PHP versions has never been that easy!


Switching from a PHP version to another is a matter of a single line change in your application configuration file.

Platform.sh supports the following PHP versions:

  • 5.4
  • 5.5
  • 5.6

Also, you can choose to enable and disable any PHP extensions that you want to use or not.

How to do?

Let’s say you want to test your application with a different PHP version.

Start by branching your environment to get a fresh new environment. Call this environment  PHP-5-6 .

If you are using the CLI, simply type:

$ platform environment:branch php-5-6

On your  .platform.app.yaml  file, simply change the type to:

type: php:5.6

Commit and push this change:

$ git add .platform.app.yaml
$ git commit -m "Upgrade to PHP 5.6"
$ git push

That’s it! Your new environment is now built with PHP 5.6.

You can confirm by SSH in the environment and type  php -v :

web@tfq54akunfoby-php-5-6--php:~$ php -v
PHP 5.6.12-1~dotdeb+7.1 (cli) (built: Aug  8 2015 01:28:25)

Deploy the changes

Once you are sure everything works as expected, you can merge this change to deploy the parent environment with the new version.

With the CLI, it’s simply:

$ platform environment:merge

Read more about configuring PHP version and extensions on our public documentation.

Get the latest Platform.sh news and resources

Related Content

A festive treat: PHP 8.3 is already available on Platform.sh

A festive treat: PHP 8.3 is already available on Platform.sh

AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺