# Changing your PHP version

> Switch a Managed WordPress site between PHP 8.0 and 8.5 on the WordPress tab. Which version to choose, and how to go back if something breaks.

Source: https://docs.phluit.com/products/managed-wordpress/wordpress-change-php-version/

Each site can run its own PHP version, from PHP 8.0 to PHP 8.5. New sites start on PHP 8.4, which we recommend. Changing the version takes about a minute: we back the site up first, then restart it on the new version.

## Which version to choose

-   **PHP 8.5:** newest.
-   **PHP 8.4:** recommended.
-   **PHP 8.3:** security fixes only.
-   **PHP 8.2:** security fixes only.
-   **PHP 8.1:** end of life, not recommended.
-   **PHP 8.0:** end of life, not recommended.

PHP 8.0 and 8.1 no longer get security fixes. Use them only if an old plugin needs them, and move up again as soon as you can.

## Change the PHP version

1.  In the portal (**portal.phluit.com**), go to **Services** and open your Managed WordPress plan.
2.  If your plan has more than one site, click the site in the list at the top of the panel.
3.  Open the **WordPress** tab and scroll to **PHP**. The current version is shown next to the heading.
4.  Choose a version under **PHP version**.
5.  Click **Save PHP settings**.
6.  Confirm the question _"Save these PHP settings? We back the site up first, then restart it on the new settings (about a minute)."_

The panel shows _"Applying your PHP settings. We back up the site first, then restart it on the new settings (about a minute)."_ When it's done, the new version is shown on the WordPress tab and on the Overview tab under **PHP**. The change is recorded on the **Activity** tab as **PHP settings changed**.

## Before you switch

-   Check that your theme and important plugins support the version you want. Most developers list this on their plugin page or in their changelog.
-   Update your plugins and themes first. Newer versions usually support newer PHP. See [Updating plugins and themes safely](/products/managed-wordpress/wordpress-update-plugins-and-themes/).
-   Pick a quiet moment, because the site restarts.

## If something breaks

1.  Go back to the previous version: choose it under **PHP version** and click **Save PHP settings** again.
2.  If that doesn't fix it, restore the backup of the type **Before a change** made just before the switch. See [Restoring a backup (and undoing a restore)](/products/managed-wordpress/wordpress-restore-backup/).

## Good to know

-   Each site has its own PHP version. Changing one site doesn't affect the other sites in your plan.
-   If you click **Save PHP settings** without changing anything, the panel shows _"Nothing changed."_
-   You can save PHP settings up to 8 times an hour.
-   The same section also has the PHP limits for memory, uploads, execution time and input variables. See [PHP settings: memory, uploads, execution time and input variables](/products/managed-wordpress/wordpress-php-settings/).
