{"id":917847,"date":"2024-01-08T17:23:10","date_gmt":"2024-01-08T16:23:10","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=917847"},"modified":"2024-01-08T17:28:09","modified_gmt":"2024-01-08T16:28:09","slug":"why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/","title":{"rendered":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)"},"content":{"rendered":"<p>Do you want to learn how to update the PHP version on WordPress? You are in the right place. Keeping your site up-to-date is imperative for optimal functionality and security. Any website owners must meticulously update their themes, plugins, and the core platform to ensure a seamless and secure user experience. Running an updated PHP version on your WordPress site is also a crucial thing that YOU should not overlook.<\/p><p>This article delves into why upgrading your WordPress PHP version is essential for enhancing performance and fortifying security. We will also guide you through updating PHP in WordPress.&nbsp;<\/p><h2 class=\"wp-block-heading\">What is PHP?<\/h2><p>PHP &#8211; which stands for &#8220;Hypertext Preprocessor\u201d &#8211; is a programming language that web developers use to create dynamic and interactive websites. It works behind the scenes to process information and interact with databases, making websites more engaging and functional.&nbsp;<\/p><p>In plain English, PHP brings your website to life. That\u2019s an example below of PHP to create a login page. As you can see below, the PHP code is part of the HTML:&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"532\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket-.png\" alt=\"PHP code example - Source: WP Rocket\n\" class=\"wp-image-6439630\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket--293x195.png 293w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket--768x511.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket--90x60.png 90w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-code-example-Source-WP-Rocket--135x90.png 135w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">PHP code example &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/features\">WP Rocket<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">How Does PHP Work on WordPress<\/h3><p>PHP is the language for developing WordPress core, plugins, and themes. It provides the essential functionality to present dynamic web pages to visitors. The pages built with PHP are not stored in advance; they are made on the spot when someone asks to see them.&nbsp;<\/p><p>When you click on a link or type a web address, a special PHP module on the server takes charge. It uses PHP instructions to build a brand-new webpage in HTML format. The server then sends this complete HTML page to your web browser so you can see the website you requested.&nbsp;<\/p><p>If you prefer a visual representation, here&#8217;s a diagram that explains it effectively:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"530\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-.png\" alt=\"PHP on WordPress explained - Source: WP Rocket\n\" class=\"wp-image-6439639\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket--294x195.png 294w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket--768x509.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket--91x60.png 91w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket--136x90.png 136w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">PHP on WordPress explained &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/features\">WP Rocket<\/a><br><\/figcaption><\/figure><figure class=\"wp-block-table\"><table><tbody><tr><td>\ud83d\udca1 In a WordPress site, PHP&#8217;s primary role is to retrieve the page content stored in your WordPress database and transform it into a webpage.&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\">What Is the Last Stable Version of PHP Available?&nbsp;<\/h3><p><a href=\"https:\/\/www.php.net\/releases\/8.3\/en.php\">PHP 8.3<\/a> is the most recent stable version, representing a significant advancement over its predecessor, PHP 7.<\/p><h2 class=\"wp-block-heading\">How Would Your WordPress Site Benefit from a PHP Upgrade<\/h2><p>The three main benefits of using an updated PHP version on your WordPress site are the following:&nbsp;<\/p><h3 class=\"wp-block-heading\">1. Better App Performance<\/h3><p>New PHP releases often come with performance optimizations and improved execution functions, allowing your site to offer a better performance. Upgrading to a more recent PHP version improves how functions work in WordPress and enhances the platform&#8217;s overall performance.&nbsp;<\/p><p>Using an outdated PHP version can also impact performance KPIs such as the <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-ttfb-server-response-times\/\">Time to First Byte (TTFB)<\/a>, which measures the time it takes for a browser to receive the first byte of response after a request has been made on the server.&nbsp;<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td>Want to offer quicker page loading times, a better TTFB, and a more enjoyable user experience for your visitors?&nbsp;<br><br>\ud83d\udcd6 Try <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\">WP Rocket to easily boost your performance and improve your Core Web Vitals<\/a> thanks to its powerful features. It takes just a few clicks!<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\">2. Improved Security<\/h3><p>Using an updated PHP version is crucial for ensuring the security of your WordPress site. As PHP evolves, it brings new security features, bug fixes, and enhancements to protect against potential vulnerabilities. Running an outdated PHP version may expose your site to security risks. On the contrary, staying up-to-date ensures that your website benefits from the latest security measures and maintains a safe online experience.&nbsp;<\/p><h3 class=\"wp-block-heading\">3. Ongoing Support and Compatibility<\/h3><p>Choosing an updated PHP version ensures ongoing support and compatibility with the latest technologies and versions of themes and plugins. Developers regularly release updates, patches, and support for the most recent PHP releases. By keeping your PHP code up-to-date, you gain access to the latest features and ensure that your site remains compatible with emerging technologies, plugins, and themes, reducing the risk of compatibility issues.&nbsp;<\/p><h2 class=\"wp-block-heading\">How to Check Your Current PHP Version<\/h2><p>There are three easy ways to check your current PHP version:&nbsp;<\/p><ol class=\"wp-block-list\"><li>Use the Site Health Tool From Your WordPress Dashboard.<\/li>\n\n<li>Using Your Hosting cPanel.<\/li>\n\n<li>Create and Upload a PHP file to your WordPress Site\u2019s Root Directory.<\/li><\/ol><p>Let\u2019s go over the three techniques so you will know if you are running an updated version of PHP.<\/p><h3 class=\"wp-block-heading\">1. Use the Site Health Tool From Your WordPress Dashboard<\/h3><p>From the WordPress Admin, go to <strong>Tools<\/strong> &gt; <strong>Site Health<\/strong> &gt; Scroll down to the <strong>Server<\/strong> tab &gt; Check the <strong>PHP version<\/strong> line.&nbsp;<\/p><p>In our demo, we are using the 8.1.22 version, which is okay for the smooth running of our site.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"530\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1.png\" alt=\"\" class=\"wp-image-6439655\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1-294x195.png 294w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1-768x509.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1-91x60.png 91w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-on-WordPress-explained-Source-WP-Rocket-1-1-136x90.png 136w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Identifying my PHP version &#8211; Source: The WordPress admin<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">2. Using Your Hosting cPanel<\/h3><p>Another way to check your current PHP version is to use cPanel and follow the instructions below:<\/p><ol class=\"wp-block-list\"><li>Log into your cPanel account&nbsp;<\/li>\n\n<li>Go to the <strong>Software<\/strong> tab <strong>GENERAL INFORMATION<\/strong>&nbsp; and click on <strong>Select PHP Version<\/strong>:<\/li><\/ol><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"213\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel-.png\" alt=\"\" class=\"wp-image-6439680\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel--310x83.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel--768x204.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel--190x51.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-Source-cPanel--338x90.png 338w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Identifying my PHP version with cPanel &#8211; Source: cPanel<br><\/figcaption><\/figure><p>3. At the top of the <strong>PHP Selector<\/strong> page, you will be able to see which PHP version you\u2019re currently running:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"228\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel-.png\" alt=\"Identifying my PHP version with cPanel - PHP Extensions - Source: cPanel\n\" class=\"wp-image-6439689\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel--310x88.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel--768x219.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel--190x54.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Identifying-my-PHP-version-with-cPanel-PHP-Extensions-Source-cPanel--316x90.png 316w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Identifying my PHP version with cPanel &#8211; PHP Extensions &#8211; Source: cPanel<br><\/figcaption><\/figure><p><strong>Good to know:<\/strong> If your hosting provider is not using \u201ccPanel\u201d per se, like SiteGround, for example, then the information should be under the <strong>Devs<\/strong> or any PHP tabs like shown below:&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"323\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround-.png\" alt=\"Upgrading PHP manually from the host admin panel - Source: SiteGround\n\" class=\"wp-image-6439700\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround--310x125.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround--768x310.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround--149x60.png 149w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Upgrading-PHP-manually-from-the-host-admin-panel-Source-SiteGround--223x90.png 223w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Upgrading PHP manually from the host admin panel &#8211; Source: <a href=\"https:\/\/www.siteground.com\/\">SiteGround<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">3. Create and Upload a PHP file to your WordPress Site\u2019s Root Directory.<\/h3><p>\u200bTo determine the PHP version employed by a specific website, you can use PHP itself.&nbsp;<\/p><ol class=\"wp-block-list\"><li>Generate a PHP info file (e.g., systeminfo.php) in the following directory: \/home\/customer\/www\/yoursite.com\/public_html&nbsp;<\/li><\/ol><ol class=\"wp-block-list\" start=\"2\"><li>Insert the following code into the file:<\/li><\/ol><pre class=\"wp-block-code\"><code class=\"\">&lt;?php phpinfo(); ?&gt;<\/code><\/pre><ol class=\"wp-block-list\" start=\"3\"><li>Access the file through a web browser using the following URL:<\/li><\/ol><p><a href=\"http:\/\/yoursite.com\/systeminfo.php\">http:\/\/yoursite.com\/systeminfo.php<\/a>&nbsp;<\/p><p>4. Check the PHP version displayed on the page.<\/p><p>Now that you know how to check the PHP version of your site, it would be interesting to verify that you are ready for an update (and whether you need one).&nbsp;<\/p><h2 class=\"wp-block-heading\">Should You Update to PHP8?<\/h2><p>The answer is yes, but if you are running an old version of PHP (like 5+), we recommend you update gradually. If you are still determining which PHP version you should update your site, here are a few guidelines that should help you.&nbsp;<\/p><p><strong>5+ PHP version: <\/strong>UPDATE. Move away regardless of the upgrade cost because this version is the least-performing one. <em>Consider updating gradually to PHP 7, monitoring the issues, and then to PHP 8 if everything goes smoothly.&nbsp;<\/em><\/p><p><strong>7+ PHP version:<\/strong> SAFE ZONE. It\u2019s worth considering moving to 8+ if there are no major conflicts resulting from that.&nbsp;<\/p><p><strong>8+ PHP version: <\/strong>MONITOR. Check for errors and conflicts and get faulty plugins\/themes to fix them.<\/p><p>Having gained insight into verifying your current PHP version, the next consideration is: How do you prepare your website for PHP upgrading? To assist you in this process, we&#8217;ve compiled a checklist to guide you through a series of steps to ensure a secure and seamless PHP transition.<\/p><h2 class=\"wp-block-heading\">How to Prepare Your Website for PHP Upgrading<\/h2><p>Preparing your website for PHP upgrading is crucial to ensure a smooth transition and optimal performance. Here\u2019s a list of techniques you can follow to get ready to update PHP:<\/p><ol class=\"wp-block-list\"><li>Create a backup of your website<\/li>\n\n<li>Update your theme and plugins<\/li>\n\n<li>Contact theme and plugins and ask if there&#8217;s any known issues&nbsp;<\/li>\n\n<li>Monitor errors<\/li>\n\n<li>Check the current WordPress compatibility status<\/li>\n\n<li>Scan your site with the PHP compatibility checker plugin<\/li><\/ol><p>This preparation should not be rushed; that\u2019s why we recommend you go through each action listed below thoroughly:<\/p><h3 class=\"wp-block-heading\">1. Create a Backup of Your Website&nbsp;<\/h3><p>Before upgrading PHP, ensure the safety of your website by creating a comprehensive backup to prevent potential data loss.<\/p><h3 class=\"wp-block-heading\">2. Update Your Theme and Plugins<\/h3><p>Ensure that your theme and plugins are updated with the latest versions, as this contributes to a smoother transition during PHP upgrading.<\/p><h3 class=\"wp-block-heading\">3. Contact Theme and Plugins and Ask If There&#8217;s Any Known Issues&nbsp;<\/h3><p>Reach out to the developers of your theme and plugins to inquire about any potential compatibility issues or specific considerations related to the PHP version you will upgrade to. Don\u2019t forget to visit their blogs, as they might have posted an announcement confirming the PHP compatibility.&nbsp;<\/p><h3 class=\"wp-block-heading\">4. Monitor Errors<\/h3><p>Closely monitoring errors becomes especially crucial during a major PHP release, as certain functions may be deprecated or potentially buggy. This scrutiny is even more critical when upgrading to a newly released version, where it&#8217;s too early to predict potential conflicts or issues that might arise. Pay close attention to error logs and address issues promptly to ensure a smoother transition toward a higher PHP version.<\/p><p>You can use the <a href=\"https:\/\/wordpress.org\/plugins\/error-log-monitor\/\">Error Log Monitor plugin <\/a>to check if you have any incoming incompatibility errors when using a more up-to-date PHP version.<\/p><h4 class=\"wp-block-heading\">5. Check The Current WordPress Compatibility Status<\/h4><p>Verify the current compatibility status of your WordPress version with the targeted PHP version to ensure seamless integration and avoid compatibility conflicts. The information is updated by the Core developers and is presented as a list. Here\u2019s the link to check the <a href=\"https:\/\/make.wordpress.org\/core\/handbook\/references\/php-compatibility-and-wordpress-versions\">PHP compatibility with WordPress versions<\/a>.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"454\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org-.png\" alt=\"\" class=\"wp-image-6439721\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org--310x176.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org--768x436.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org--106x60.png 106w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-vs-WordPress-versions-Source-WordPress.org--159x90.png 159w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">PHP compatibility vs WordPress versions &#8211; Source: <a href=\"https:\/\/make.wordpress.org\/core\/handbook\/references\/php-compatibility-and-wordpress-versions\/\">WordPress.org<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">6. Scan Your Site With the PHP Compatibility Checker Plugin<\/h3><p><a href=\"https:\/\/wordpress.org\/support\/plugin\/php-compatibility-checker\">The PHP Compatibility Checker plugin<\/a> assesses and reports the compatibility of a WordPress site&#8217;s PHP code with different PHP versions, ensuring optimal performance and security. You can easily scan your site to check if the themes and plugins will work with an updated version of PHP before you upgrade.&nbsp;<\/p><p>The plugin can help make update decisions and share bugs with themes and plugin authors.&nbsp;&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"508\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org-.png\" alt=\"\" class=\"wp-image-6439731\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org--307x195.png 307w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org--768x488.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org--94x60.png 94w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/PHP-compatibility-checker-scanning-your-site-Source-WordPress.org--142x90.png 142w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">PHP compatibility checker scanning your site &#8211; Source: <a href=\"https:\/\/wordpress.org\/support\/plugin\/php-compatibility-checker\">WordPress.org<\/a><br><\/figcaption><\/figure><p>In summary, here&#8217;s a checklist for you to use in preparing your site for a PHP upgrade. Make sure to save this image so you don\u2019t end up breaking your site.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"530\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket-.png\" alt=\"Checklist to prepare your site for PHP upgrading - Source: WP Rocket\n\" class=\"wp-image-6439741\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket--294x195.png 294w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket--768x509.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket--91x60.png 91w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Checklist-to-prepare-your-site-for-PHP-upgrading-Source-WP-Rocket--136x90.png 136w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Checklist to prepare your site for PHP upgrading &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket<\/a><br><br><br><\/figcaption><\/figure><p>By following this checklist, you can ensure a smooth and successful transition during the PHP upgrade, minimizing potential issues and optimizing the performance of your website.&nbsp;<\/p><h2 class=\"wp-block-heading\">How to Update to the Latest Version of PHP<\/h2><p>To update to the latest version of PHP, you can go to your cPanel, do it manually on your server, or ask your hosting provider to do it for you.&nbsp;<\/p><p>Here&#8217;s a step-by-step guide on how to update to the latest version of PHP:<\/p><h3 class=\"wp-block-heading\">1. Upgrading PHP with cPanel<\/h3><p>Upgrading PHP through cPanel is a straightforward process.&nbsp;<\/p><ul class=\"wp-block-list\"><li>Log in to your cPanel account.<\/li>\n\n<li>Navigate to the <strong>Software<\/strong> section and look for the <strong>Select<\/strong> <strong>PHP Version<\/strong> option.&nbsp;<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"430\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel-.png\" alt=\"The PHP version button to upgrade PHP - Source: cPanel\n\" class=\"wp-image-6439753\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel--310x167.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel--768x413.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel--112x60.png 112w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-PHP-version-button-to-upgrade-PHP-Source-cPanel--167x90.png 167w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">The PHP version button to upgrade PHP &#8211; Source: cPanel<\/figcaption><\/figure><ul class=\"wp-block-list\"><li>Open the dropdown menu near your current PHP version.<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"568\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel-.png\" alt=\"\" class=\"wp-image-6439761\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel--275x195.png 275w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel--768x545.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel--85x60.png 85w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Current-PHP-version-and-dropdown-Source-cPanel--127x90.png 127w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Current PHP version and dropdown &#8211; Source: cPanel<br><\/figcaption><\/figure><ul class=\"wp-block-list\"><li>From the list, select the new PHP version you want to upgrade to:<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"859\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel-.png\" alt=\"The dropdown menu to upgrade PHP - Source: cPanel\n\" class=\"wp-image-6439770\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel--182x195.png 182w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel--768x825.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel--56x60.png 56w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Dropdown-menu-to-upgrade-PHP-Source-cPanel--84x90.png 84w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">The dropdown menu to upgrade PHP &#8211; Source: cPanel<br><\/figcaption><\/figure><p>If your host is not using cPanel, then you need to find the PHP menu and update from there directly. That\u2019s how it works for SiteGround:<\/p><ul class=\"wp-block-list\"><li>Go to <strong>Devs <\/strong>&gt;<strong> PHP Manager <\/strong>&gt; Click on the <strong>Change PHP version <\/strong>button:<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"320\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-.png\" alt=\"The \u201cchange PHP version\u201d button - Source: SiteGround\n\" class=\"wp-image-6439779\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround--310x124.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround--768x307.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround--150x60.png 150w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround--225x90.png 225w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">The \u201cchange PHP version\u201d button &#8211; Source: <a href=\"https:\/\/www.siteground.com\/\">SiteGround<\/a><br><\/figcaption><\/figure><ul class=\"wp-block-list\"><li>A drop-down menu appears where you can select the <strong>PHP version<\/strong> you want to upgrade to:&nbsp;<\/li><\/ul><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"320\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1.png\" alt=\"The drop-down menu to update PHP - Source: SiteGround\n\" class=\"wp-image-6439786\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1-310x124.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1-768x307.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1-150x60.png 150w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/The-change-PHP-version-button-Source-SiteGround-1-1-225x90.png 225w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">The drop-down menu to update PHP &#8211; Source: <a href=\"https:\/\/www.siteground.com\/\">SiteGround<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">2. Upgrading PHP on Your Server<\/h3><p>If you manage your server, upgrading to any version of PHP is a task you can undertake by following the <a href=\"https:\/\/www.php.net\/manual\/en\/migration83.php\">migration guides of php.net<\/a>. It&#8217;s crucial to carefully review new features and functions and any deprecated features that could potentially affect your website.&nbsp;<\/p><p>Simply select the right migration versions to start the process:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"328\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net-.png\" alt=\"Updating PHP manually - Source: php.net\n\" class=\"wp-image-6439792\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net-.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net--310x127.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net--768x315.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net--146x60.png 146w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Updating-PHP-manually-Source-php.net--220x90.png 220w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Updating PHP manually &#8211; Source: <a href=\"https:\/\/www.php.net\/manual\/en\/migration83.php\">php.net<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">3. Asking Your Web Host to Upgrade PHP<\/h3><p>If you prefer a hands-off approach, contact your web hosting provider and request a PHP upgrade. Submit a ticket or reach out through their designated communication channels, specifying the PHP version you wish to upgrade to.<\/p><p>Following these steps above, you can safely update to the latest PHP version, ensuring that your website remains secure, performs optimally, and stays in line with the latest industry standards.<\/p><h3 class=\"wp-block-heading\">How Much Time Does It Take to Upgrade a Website?<\/h3><p>The duration needed to update the PHP of a website can greatly vary based on factors such as website complexity and features. Typically, the process should take only a few minutes. If you have asked your host to do it, you should receive a notification when the process is completed.<\/p><h2 class=\"wp-block-heading\">How Will Your Website Be Affected When PHP Is Updated?<\/h2><p>Toward the end of this procedure, the PHP engine will undergo a restart, leading to a brief downtime, affecting only the WordPress backend. If all goes smoothly, your site will remain accessible to visitors during this period. To be on the safe side, it&#8217;s essential to plan updates during periods of lower traffic.<\/p><h2 class=\"wp-block-heading\">What if You Update PHP and Then Have Problems?<\/h2><p>Problems arising from PHP version updates occur when the code on your site relies on outdated functions no longer supported by the newer PHP versions. The likely sources of these issues are plugins or an active theme.<\/p><p><strong>Pro tip: always perform a PHP update on a staging site first to avoid any bad surprises.<\/strong><\/p><p><strong>&nbsp;<\/strong>If there is an incompatibility, like a plugin or your theme not aligning with the updated PHP version, you might encounter a 500 error or the white screen of death on your site&#8217;s front end. In such cases, the most straightforward approach to pinpointing the issue is to disable all third-party plugins and re-enable them one by one.<\/p><p>If you no longer have access to your WordPress admin, restore an older version of your site. Your host should have a copy.&nbsp;<\/p><h2 class=\"wp-block-heading\">Wrapping Up<\/h2><p>In conclusion, upgrading your PHP is crucial for maintaining a WordPress site that operates seamlessly. Regularly checking <a href=\"https:\/\/make.wordpress.org\/core\/handbook\/references\/php-compatibility-and-wordpress-versions\/\">WordPress.org<\/a> for the latest news and updates related to PHP and WordPress ensures that your website remains at the forefront of compatibility and security.<\/p><p>The benefits of upgrading extend beyond just a smooth-running website. Compatibility with the entire WordPress ecosystem is essential, preventing potential conflicts with plugins and ensuring a harmonious integration of features. Security is another pivotal factor, as an outdated version of PHP leaves your site vulnerable to potential threats.<\/p><p>While a PHP upgrade is a fundamental step in enhancing performance, there are additional measures that can be taken for an even greater boost. Implementing image and code optimization, incorporating caching mechanisms, and using GZIP compression are effective techniques to optimize your site&#8217;s speed further. For a comprehensive solution, consider pairing the PHP upgrade with a performance plugin like <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket<\/a>, which can make your site load faster without any effort from your side. WP Rocket is a powerful and easy-to-use performance plugin that allows you to save time and focus on your business. Plus, <a href=\"https:\/\/wp-rocket.me\/pricing\/\">you don\u2019t take any risks<\/a> with the 100% money-back guarantee within 14 days of your purchase.<\/p>","protected":false},"excerpt":{"rendered":"<p>Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely. <\/p>\n","protected":false},"author":188114,"featured_media":6439851,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-917847","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)<\/title>\n<meta name=\"description\" content=\"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)\" \/>\n<meta property=\"og:description\" content=\"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-08T16:23:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-08T16:28:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Marine Larmier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marine Larmier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\"},\"author\":{\"name\":\"Marine Larmier\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a\"},\"headline\":\"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)\",\"datePublished\":\"2024-01-08T16:23:10+00:00\",\"dateModified\":\"2024-01-08T16:28:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\"},\"wordCount\":2553,\"commentCount\":20,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\",\"name\":\"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png\",\"datePublished\":\"2024-01-08T16:23:10+00:00\",\"dateModified\":\"2024-01-08T16:28:09+00:00\",\"description\":\"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png\",\"width\":1100,\"height\":460,\"caption\":\"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a\",\"name\":\"Marine Larmier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g\",\"caption\":\"Marine Larmier\"},\"description\":\"I have six years of experience writing and producing rich SEO content in the WordPress ecosystem. I worked remotely for four years at WPML while traveling the world. Based between France and New Zealand, I love traveling, yoga, sunsets, and world cuisine.\",\"sameAs\":[\"https:\/\/wp-rocket.me\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)","description":"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/","og_locale":"en_US","og_type":"article","og_title":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)","og_description":"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.","og_url":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2024-01-08T16:23:10+00:00","article_modified_time":"2024-01-08T16:28:09+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png","type":"image\/png"}],"author":"Marine Larmier","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Marine Larmier","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/"},"author":{"name":"Marine Larmier","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a"},"headline":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)","datePublished":"2024-01-08T16:23:10+00:00","dateModified":"2024-01-08T16:28:09+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/"},"wordCount":2553,"commentCount":20,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/","url":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/","name":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png","datePublished":"2024-01-08T16:23:10+00:00","dateModified":"2024-01-08T16:28:09+00:00","description":"Running an updated PHP version on your WordPress site is essential. Find out if you need to update it, and how to do it safely.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2024\/01\/Why-You-Need-to-Upgrade-to-PHP-7-ASAP-and-How-to-Do-It-Right-Now.png","width":1100,"height":460,"caption":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/why-you-need-to-upgrade-to-php-7-asap-and-how-to-do-it-right-now\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"Why You Need to Upgrade to PHP 7+ ASAP (and How to Do It Right Now)"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a","name":"Marine Larmier","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g","caption":"Marine Larmier"},"description":"I have six years of experience writing and producing rich SEO content in the WordPress ecosystem. I worked remotely for four years at WPML while traveling the world. Based between France and New Zealand, I love traveling, yoga, sunsets, and world cuisine.","sameAs":["https:\/\/wp-rocket.me\/"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/917847"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/188114"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=917847"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/917847\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/6439851"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=917847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=917847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=917847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}