How to Update the PHP Version of Your WordPress Site (Why You Should)

All Kinsta clients can easily update and or change PHP versions for each WordPress site individually within the MyKinsta dashboard. Currently, we support PHP 8.0, 8.1 and 8.2 for sites hosted on Kinsta. We highly recommend PHP 8.1, or the latest version, 8.2, as it’s much faster, resource-friendly, and more secure than its predecessors. In fact, it’s shown to be 3x as fast in some configurations, as seen in our PHP benchmark reports. As you may have heard, PHP has moved to a predictable release schedule. Each new version is actively maintained for 2 years and receives an additional year of critical security updates. To make sure your WordPress sites are as fast and secure as possible, we have adopted the same schedule, which means that we will be removing unsupported versions of PHP when they reach end-of-life (EOL). Not only will we be adopting PHP’s official schedule, but as of 2020, the end-of-life for the oldest version of PHP on the Kinsta platform will always be November 1st. This will allow you and our team to upgrade everyone before the holiday season (Black Friday, Cyber Monday, Christmas, etc.).
Why Update the PHP Version of Your WordPress Site?

The two main reasons are security and speed. Just as you upgrade WordPress itself to make sure you are protected against security vulnerabilities, you should do the same with PHP. In addition, upgrading PHP produces a significant speed increase. PHP 7.0 was a huge leap forward – more than doubling performance compared to 5.6. With each version, we’ve seen increasing performance improvements over the previous version. For additional details, check out our article on supported PHP versions. Not sure what version of PHP you’re running? You can check in the MyKinsta dashboard Tools menu. Or, if you’re running WordPress 5.0 or above, you can see the PHP version under the Site Health tool. What If My Site Breaks?
Issues caused by updating PHP versions happen when code running on your site uses old functions that are no longer supported by newer versions of PHP. The culprit is likely to be a plugin or an active theme. Our guide below contains step-by-step instructions on how to troubleshoot this.
How to Update PHP Versions in WordPress
- Create a Staging Site
- Change PHP Engine
- Test Site, Plugins, Theme
- Push Staging to Live
- Update PHP on Live Site
Step 1 – Create a Staging Site
The very first thing you should do is create a staging site. This is separate from your live environment and will allow you to test newer versions of PHP without breaking your live site.
In the MyKinsta dashboard, click on Sites in the left navigation. You will see a list of your sites. Click on the one you’d like to add a staging area to (the site you want to update PHP versions on). Click on the Environment selector next to the site name, and select Staging from the drop-down menu, then click on the Create a staging environment button.

Make sure to also check out the important notes regarding staging environments. For example, if you’re using a third-party CDN, you might need to disable it for your site to render correctly.
This is because your staging site uses a different URL. Caching is also disabled on staging, so please keep this in mind if you are trying to test performance.
Step 2 – Update PHP Version for WordPress
To update your WordPress site’s PHP version, go to Sites and select the site you’d like to change the PHP version on. Then click on the Tools tab. Under PHP Engine click on the Modify button and select your preferred PHP version in the drop-down menu.
If you want to test a new PHP version first, make sure your WordPress staging environment is selected, not your live environment. We recommend first testing with PHP 8.0. If your site has problems, you can always contact our Kinsta support team at any time.

Once you select the PHP version you want, you’ll get a prompt. Click on the Modify PHP version button to confirm your choice.

This process may take up to 3 minutes. At the end of the process, your PHP engine will be restarted, which may result in a couple of seconds of downtime for your WordPress backend only. Your site visitors will not experience any downtime.
While the PHP version is being changed, you can navigate away from the above page, but some actions like cache management will be unavailable until the new engine has been activated. You will receive a notification in the dashboard as soon as the change has been made.
(Suggested: Changing your PHP version can help you fix “The site is experiencing technical difficulties.” error in WordPress).
Step 3 – Test Your Site, Plugins, Theme
You should now have a staging site up and running on the latest version of PHP (or the version you want to switch to). The first thing you should do is simply browse and click around on your WordPress site to see if you notice anything broken.
If something is incompatible, such as a plugin or your theme, you might see a 500 error (501, 502, 503, 504, etc.) or white screen of death on the front-end of your site. In this case, the easiest and quickest way to determine what might be causing it is to disable all of your third-party plugins and re-enable them one by one. Remember, you’re on a staging site. So you don’t have to worry about breaking anything.
In your WordPress dashboard, under the Plugins screen, select all of your plugins. Then select Deactivate from the drop-down and click Apply.

You can then re-enable them one by one, visiting your WordPress site each time. This will help narrow down what might be causing an issue. Don’t have access to your WordPress dashboard because of an error? No problem, check out how to disable plugins via FTP.
The exact same tests can be used with your WordPress theme. You can temporarily switch back to the default WordPress theme, such as the Twenty Nineteen theme.
View Log Files in MyKinsta
Perhaps you have determined which plugin or theme is causing the issue but are not sure why? This is where your WordPress error logs can come in handy. Simply click into one of your WordPress sites, and on the right-hand side, click on Error Logs.
You can view your error.log, kinsta-cache-perf.log, and access.log files. By default, it will show the last 1,000 lines. You can drag the slider across to see the last 20,000 lines.

Important: The MyKinsta logs tool doesn’t show debug info. If you need to view debug information, you can enable WP_DEBUG as we’ll show you below.
View Raw Log Files via SFTP
You can see the completely unmodified logs in /logs/ via SFTP.

Tail Your Log Files via SSH
You can tail the logs while you experiment on your site using SSH. This basically means you can watch the log update live while testing. All of Kinsta’s hosting plans include SSH access.
Show last 500 lines
tail -n 500 /www/sitename/logs/error.log
Watch the file live
Watch your error log file update on the fly.
tail -f /www/sitename/logs/error.log
For those of you with SSH access, WP-CLI can also be an invaluable tool.
Enable Debug Mode in MyKinsta
For Kinsta users, WordPress debug mode can be enabled right in the MyKinsta dashboard. Simply navigate to Sites > Tools > WordPress Debugging, and click the Enable button. This will allow you to see PHP errors and notices without having to enable debug mode via SSH or SFTP.

Our self-healing PHP feature automatically restarts PHP if it notices any issues. If you need to manually restart PHP for any reason, you can do so by going to your site’s Tools page and clicking Restart PHP.

Enable Debug Logging in WordPress
If you don’t have SSH or MyKinsta access, you can always enable debug logging in WordPress. First, you will need to connect to your site via SFTP. Then download your wp-config.php so you can edit it.

Find the line that says /* That’s all, stop editing! Happy blogging. */ , and just before it, add the following (as seen below):
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );

If the above code already exists in your wp-config.php file but is set to “false,” simply change it to “true.” This will enable debug mode and show everything in your /wp-content/debug.log file. You will also see warnings and errors in your WordPress admin if they exist.
Important: Don’t forget to turn it off when you’re done, as these files can get pretty huge very quickly.
Confused as to What to Look For?
There are thousands of plugins and themes out there, so, unfortunately, it’s impossible for us to list all the errors you might experience. Typically these occur due to code (functions, syntax, etc.) being incompatible with the version of PHP you’re using. However, here is an example of something you might see.
500: Fatal error: Uncaught Error: A semicolon (';') is expected here. in /www/sitename/public/wp-content/plugins/bbpress-shortcodes/bbpress-shortcodes.php:177
As you can see above, it’s pretty easy to quickly narrow down that it’s the bbPress Shortcodes plugin causing a problem.
In worst-case scenarios, you might find that you have a compatibility issue with one or two plugins. If that is the case, here is what we advise:
- Update your plugins and themes to the latest version if you haven’t already.
- Reach out to the developer of the plugin or theme and ask them to add/fix support PHP 7.4 (or the current version you’re using). This is one reason we’re giving you a heads up before the phase-out dates!
- Find an alternative plugin that can deliver the same functionality and is compatible with the PHP version.
- Hire a WordPress developer to fix the issue.
- Change your PHP engine to a lower version and see if the plugin or theme then works. If it does, you could run on a lower version of PHP until the developer updates their code. We don’t recommend this as PHP 8.0 is faster and will remain supported for a longer period of time. But if there is something you absolutely need to run and it only works on PHP 7.4, then you might have to resort to this.
Step 4 – Push Staging to Live
Once you have finished testing your site with PHP, if you had to make any changes to your plugins or themes, you can either push staging to live or make the same changes to the live site that you made to the staging site.
Some of you may find that you have to make fairly exhaustive changes in staging to get the site running on a newer version of PHP. In that case, using the push to live feature will save you a lot of time.
To do this, make sure you have your staging environment selected. Then click the Push Staging to Live button.

Feel free to reach out to our support team 24/7 regarding concerns or issues with updating the PHP version on your WordPress site.
Step 5 – Update PHP on Your Live Site
Now that it’s ready for PHP to be updated, you can change the PHP version on your live site just as you did in Step 2 above (Tools > PHP Engine > Modify > select your preferred PHP version).
Save time and costs, plus maximize site performance, with $275+ worth of enterprise-level integrations included in every Managed WordPress plan. This includes a high-performance CDN, DDoS protection, malware and hack mitigation, edge caching, and Google’s fastest CPU machines. Get started with no long-term contracts, assisted migrations, and a 30-day money-back guarantee.
Check out our plans or talk to sales to find the plan that’s right for you.
Limited Time Offer: 4 Free Months
Unlock 4 months of free WordPress Hosting that can handle the holiday season traffic surge.
Как обновить версию PHP для сайта работающего на WordPress и других CMS
Если вы зашли в админку WordPress и увидели сообщение о необходимости обновления версии PHP (пи-эйч-пи), то имеет смысл последовать рекомендациям.

Коротко скажем, что PHP — это язык программирования. Чем новее версия PHP, тем выше безопасность и скорость работы вашего сайта на WordPress. Так как наш сайт размещён на надёжном хостинге Beget, то именно на его примере разберем обновление версии PHP.
Шаг 1. Заходим в свой аккаунт на Бегет и щёлкаем по пиктограмме «Сайты».

Шаг 2. Мы попали в раздел «Управление сайтами». Наводим на значок шестерёнки в строке с именем сайта и сразу видим текущую версию PHP.

Шаг 3. Щёлкаем по шестерёнке, после чего появляется окно «Настройки pcbee.ru» (естественно, в вашем случай имя сайта будет другим). В выпадающем меню выбираем самую свежую версию PHP — на момент публикации этих строк, это PHP 7.3.


Собственно говоря, это всё!

Обратите внимание, что наша пошаговая инструкция подходит не только для сайтов работающих на WordPress, но и для других CMS, например, Joomla и Drupal.
Важно!
После обновления PHP, обязательно проверьте работоспособность сайта!
Случается, что после обновления PHP, сайт на WordPress оказывается недоступен. Порой даже нельзя зайти в консоль. Как правило, это случается из-за какого-то устаревшего плагина, не предназначенного для новой версии PHP. В этом случае отправляемся на хостинг, заходим в папку с плагинами, поочерёдно дописываем к названию каждого плагина знак нижнего подчёркивания (либо другой на ваше усмотрение) и каждый раз проверяем, заработал сайт или нет. Таким образом, мы сможем вычислить «глючный» плагин, который впоследствии удалим или обновим.
На нашей практике, были проблемы с плагином Sitemap by BestWebSoft, которые решались его деактивация, а затем активацией.
How to Update PHP in WordPress Safely: Understanding Compatibility + Upgrading Tips
Hypertext Preprocessor (PHP) is an open-source scripting language used for advanced customization and ensuring optimal performance of WordPress websites.
The WordPress software, themes, and plugins are based on PHP. It is also the language used by WordPress sites to connect and interact with their databases.
Having the latest version of PHP on your site is a great way to improve its security and performance as well as ensure compatibility with your WordPress theme and plugin.
However, performing this task includes several processes, from checking your current version of PHP to finally updating it.
Fortunately, Hostinger offers a PHP configuration tool to help you safely upgrade your WordPress site’s PHP version.
This tutorial will cover all the steps on how to update PHP in WordPress. You will also learn why using the latest PHP version is important and several best practices.
Why Update PHP Version in WordPress
Like WordPress themes and plugins, PHP frequently receives updates and patches. Using an older version of PHP may lead to performance issues and make your WordPress site vulnerable to cyber threats.
So, updating to the latest PHP version brings several benefits to your WordPress website, including:
- Performance boost. PHP becomes more efficient with each update, which can significantly improve the site load speed. This way, your WordPress website will be more responsive and provide a better user experience.
- Enhanced security. Cyber criminals often attempt attacks by exploiting PHP vulnerabilities. Updating to newer PHP versions makes your site less vulnerable to security risks.
- Latest features. Upgrading PHP in WordPress will give you access to bug fixes and new features. For instance, PHP 8.2 includes a sensitive parameter attribute, type-system improvements, and supports constants in traits.
- Better compatibility. Updating the website’s PHP version will ensure it is compatible with WordPress plugins and themes optimized for it.
Pro Tip
As WordPress is based on PHP, you can insert custom PHP code to enhance your website’s functionality.
PHP Version Compatibility for WordPress
While WordPress supports multiple PHP versions, we highly recommend using the latest version of PHP to ensure your website remains secure and up-to-date. However, note that not all WordPress versions are compatible with newer PHP releases.
Use the following chart to check whether your WordPress site supports the latest PHP version:
| WordPress Version | Supported PHP Versions |
| 5.0, 5.1 | PHP 5.2, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3 |
| 5.2 | PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3 |
| 5.3, 5.4, 5.5 | PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4 |
| 5.6, 5.7, 5.8 | PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0* |
| 5.9, 6.0 | PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0*, PHP 8.1* |
| 6.1, 6.2 | PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0*, PHP 8.1*, PHP 8.2* |
Note that the (*) symbol indicates the version of PHP is in the beta support phase, meaning you may encounter minor issues. Also, some themes and plugins may not support these PHP versions yet.
How to Update PHP in WordPress
Updating the PHP version in WordPress only takes several steps. However, you must be careful, as updating to an unsupported PHP version can break your WordPress website.
In this section, we will show you the safest ways to update PHP.
1. Check the Current WordPress PHP Version
To decide whether you should perform an update, check the site’s current PHP version via the WordPress dashboard or your hosting account.
Via hPanel
- On the hPanel dashboard, go to WordPress → Overview.
- The settings are available in the PHP Version section.
Via the WordPress Dashboard
- On the WordPress admin area, navigate to Tools → Site Health.
- Go to the Info tab and expand the Server category to see the website’s current PHP version.
2. Create a Backup of Your WordPress Site
Before performing a PHP update, we highly recommend backing up your WordPress site. If you encounter unexpected errors after the PHP updating process, you will be able to restore the site.
Hostinger users can back up their WordPress site files and database via their hosting account:
- On hPanel, go to Files → Backups.
- Choose the Generate new backup option → Select.
- A pop-up window will appear, asking for confirmation. Click Proceed to start the backup.
- Wait until the backup process is complete. It may take a while if your website has large amounts of data.
Another option is to create a backup by using a plugin like UpdraftPlus WordPress Backup Plugin. Here is how:
- Install and activate the UpdraftPlus plugin.
- Go to Settings → UpdraftPlus Backups.
- Click the Backup Now button.
- Select the database and website files options on the pop-up window. Then, click the Backup Now button to confirm the action.
- The backup process might take a while, depending on the size of your WordPress website files and database.
3. Update the WordPress Core, Themes, and Plugins
Another important step before updating your WordPress PHP version is checking if there are any updates for plugins, themes, and the WordPress core software available. Doing so will help reduce any compatibility issues when you update your PHP version.
There are two easy methods to choose from – via hPanel and the WordPress admin page.
Via hPanel
It is possible to update the WordPress files, themes, and plugins directly from hPanel. Here are the steps:
- Go to WordPress → Security. You will find information about the WordPress version, plugins, themes, security issues, and recommended actions.
- If any new updates are available, click the three dots icon and select Update to install them.
Via the WordPress Dashboard
Another way to check for software, theme, and plugin updates is via the WordPress admin dashboard:
- Go to Dashboard → Updates. The Updates screen will inform you if there are any updates available.
- To update the plugins, tick the Select All checkbox and click Update Plugins. The steps will be similar when updating WordPress themes.
- Click the Update to version button to update WordPress.
4. Update the PHP Version of Your WordPress Site
Once you have created a backup and checked for WordPress updates, you can proceed to upgrade the PHP version. Remember to check its compatibility with your current WordPress version.
The safest and easiest way to change the PHP version is via your hosting control panel:
- On hPanel, navigate to Advanced → PHP Configuration.
- Select the preferred PHP version and click Update.
- Wait until the update process is complete.
Best Practices for Updating PHP in WordPress:
If this is your first time updating PHP versions in WordPress, we recommend implementing the following practices:
Check PHP Compatibility With Your Theme and Plugins
Some themes or plugins may not support the latest version of PHP or specific older versions. It is important to check the theme and plugin compatibility to ensure that your website will remain functional after the update.
To check the PHP versions supported by your plugins, go to the Installed Plugins page and click View details next to each plugin installed. A pop-up window will display the recommended PHP settings in the Requires PHP Version section.
As for checking a theme’s PHP version compatibility, visit the WordPress theme directory. Find your WordPress theme using the search bar and click More Info. You will find the requirements in the PHP Version section.
Test the PHP Update on a Staging Site
If you check PHP compatibility, there is little to no chance you will face issues. However, it is better to test the new PHP version via a WordPress staging environment to ensure the website will work and function properly.
A WordPress staging environment lets you check and modify themes, plugins, and new PHP versions without affecting the live site.
If you don’t find any problems during the testing phase, you can safely update the PHP version of the live site.
Monitor Your Site for Issues
After you update your PHP version, we highly recommend monitoring your website. Check for broken links, error page redirections, conflicting plugins, and site performance issues.
An easy way to monitor your website is by using a WordPress analytics plugin such as MonsterInsights and WP Statistics. These plugins have powerful tools and features to help you gather, analyze, and track traffic, page views, and site speed.
However, to troubleshoot any possible errors, consider checking the PHP error log. To do that, you need to enable PHP error logging via your hosting control panel.
Once the error is fixed, we recommend disabling the PHP error log so it will not take up too much storage space.
If you still encounter issues after analyzing the site performance and monitoring the PHP error log, revert the site to its older PHP version. The steps are similar to updating PHP – you only need to select the previous version.
Contact Your Hosting Provider Customer Support
Another safe way to update your PHP version in WordPress is to contact the hosting provider’s customer support before doing it. This can be especially helpful for those completely new to this task.
Hostinger’s 24/7 Customer Success team is always ready to provide assistance. Don’t hesitate to contact us if you need help checking PHP compatibility or updating it to the latest version.
You can easily contact us by clicking the Help button from your web hosting account. The Hostinger Help page will display topics related to WordPress hosting and site management. It is also possible to quickly find answers to your questions by describing the issues in the search box.
Conclusion
PHP is WordPress’s core language, so it is also used by themes and plugins. Updating the WordPress PHP version gives your website many benefits, such as boosting its website performance and enhancing site security.
In this article, you have learned how to change the PHP version in WordPress. Here is a recap of the steps:
- Check the current PHP version using the Site Health tool.
- Create a WordPress site backup via hPanel or using a plugin.
- Update the WordPress software, themes, and plugins.
- Update the PHP version of the WordPress website.
We have also covered the best practices for performing a PHP version update for WordPress, such as testing the new version of PHP on a staging site, monitoring the website for issues, and checking theme and plugin compatibility.
We hope we have helped you understand how to update PHP for WordPress. If you have questions, leave a comment below.

The author
Information Technology and web development are Yoga’s passions. He loves nothing more than sharing his experience with readers, and helping them to understand the world of IT. In his spare time, Yoga likes to make music and learn to code. He is always looking for new challenges, and enjoys pushing himself to learn new things.
WordPress и PHP 7+: как и зачем нужно обновить PHP на сайте
Что если вы можете удвоить скорость загрузки сайта на WordPress всего за 10 минут? Звучит неплохо?
Это несложно — все, что нужно сделать, это обновить PHP до последней версии.
И скоро у вас все равно не будет выбора, поскольку PHP 5.6 станет минимальным требованием для WordPress в апреле 2019 года, а его замена на PHP 7.0 произойдет уже в декабре 2019 года.
PHP является одним из самых популярных языков в Интернете. Фактически, 70% всех веб-сайтов используют PHP на стороне сервера.
Сайты на WordPress также работают на PHP. Но большая проблема, с которой мы сталкиваемся в сообществе WordPress, заключается в том, что многие сайты, компании, хостинг-провайдеры и разработчики не поддерживают последние версии PHP. Это особенно расстраивает, учитывая, насколько легко обновить PHP на сервере.
WordPress и проблема с PHP
Скоро 8 из 10 сайтов WordPress будут работать на версии PHP, которая больше не поддерживается.
Согласно статистике WordPress.org , 35% сайтов WordPress работают на PHP 5.6. Активная поддержка PHP 5.6 закончилась 19 января 2017 года, и она официально завершит свой жизненный цикл 31 декабря . Это означает, что у нее больше не будет поддержки безопасности, и сайты, которые продолжают использовать PHP 5.6, будут иметь незакрытые уязвимости.
Кроме того, есть PHP 7.0, срок службы которого истек 3 декабря 2018 года. Он также больше не является поддерживаемой версией PHP. Тем не менее, почти 20% сайтов WordPress работают на PHP 7.0.
Как и любое программное обеспечение, PHP имеет жизненный цикл. Каждая основная версия PHP обычно полностью поддерживается исправлениями ошибок и исправлениями безопасности в течение двух лет после ее выпуска.
Также около 25,2% сайтов уже работают на неподдерживаемых старых версиях PHP, включая 5.2, 5.3, 5.4 и 5.5.
Таким образом, на момент написания этой статьи около 80% сайтов WordPress работают или собираются работать с неподдерживаемой версией PHP.
Только 20% сайтов WordPress работают в последних поддерживаемых версиях — PHP 7.1, PHP 7.2 и PHP 7.3.

Почему так много сайтов WordPress все еще на старых версиях PHP?
Существует множество причин, по которым веб-сайты продолжают работать на устаревших и неподдерживаемых версиях PHP, вот наиболее распространенные из них.
1. Владельцы сайтов не знают или не заботятся о программном обеспечении своего сервера или хостинга
Для многих владельцев сайтов, особенно для тех, кто не имеет технических знаний, важно, чтобы их сайт просто работал и хорошо выглядел. Зачем обновлять какой-то там PHP, когда все и так работает?
2. Это требует много времени для разработчиков плагинов и тем
Для разработчиков старых плагинов и тем обновление до последних версий PHP означает обновление их кода вместе с полным тестированием для обеспечения совместимости, если они не хотят ломать сайты своих пользователей.
3. Хостинг-провайдеры не хотят нарушать работоспособность сайтов
Несмотря на то, что PHP 5.6 был выпущен в 2014 году, а поддержка PHP 7.0 подходит к концу, веб-хостинги отложили обновление своих серверов до последних версий PHP (7.1 или 7.2) из-за опасности сломать плагины и темы.
Это означает, что если вы хотите, чтобы ваш сайт работал на последней версии PHP, вам нужно взять инициативу на себя и обновить ее самостоятельно, или попросить помочь вашего хостинг-провайдера помочь вам.
Почему WordPress не требует обновления PHP?
Проект WordPress не заставлял пользователей использовать последние версии PHP, потому что по ряду причин. Это все, что мы рассмотрели в предыдущем разделе, а также ответственность за управление самой популярной в мире CMS.
Но все должно измениться в 2019 году.
На WordCamp US в декабре 2018 года было объявлено, что PHP 5.6 станет минимально поддерживаемой версией в первой половине 2019 года, и будет увеличена до PHP 7.0 во второй половине 2019 года.
Эти изменения ожидаются уже давно, и мы можем поблагодарить разработчиков палгина Yoast за большую роль в побуждении пользователей к обновлению PHP. В начале 2017 года с выпуском Yoast SEO 4.5 на панели инструментов WordPress появилось уведомление для пользователей Yoast. Оно призывало владельцев сайтов, чьи сайты находились на сервере с устаревшей версией PHP, обновить его до новой версии. Отключить уведомление можно было, только обновив PHP.
Совсем недавно, в начале декабря, основной контрибьютор WordPress Гэри Пендергаст предложил обновить минимальные версии PHP. План, который Мэтт Малленвег подтвердил на WordCamp US, к апрелю 2019 года сделает PHP 5.6 минимально необходимой версией для WordPress, а PHP 7.0 станет минимальным уже в декабре 2019 года.
Почему вы должны перейти на PHP 7+
PHP 7.2 теперь не только официально включен в список рекомендуемых требований для WordPress , но и имеет множество преимуществ в плане скорости, производительности и безопасности .
1. Скорость и производительность
Если ваш сайт работает на более старой версии PHP, обновление до последней версии даст вам немедленный прирост производительности — больше, чем любая другая настройка сайта WordPress.
Когда был выпущен PHP 7.0, он получил признание за значительный прирост производительности. Фактически, официальный тест PHP с использованием WordPress 4.1.1 показывает, что PHP 7.0 позволяет серверам выполнять вдвое больше запросов в секунду, чем PHP 5.6 с вдвое меньшей задержкой.

Мы недавно публиковали тесты производительности, сравнивая PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2 и PHP 7.3. Их результаты показывают, что PHP 7.3 выполняет в 3 раза больше запросов в секунду по сравнению с PHP 5.6.

Если вам нужны дополнительные доказательства повышения производительности, есть результаты тестирования, которые показали, что PHP 7.3, выпущенный в конце 2018 года, примерно на 5% быстрее, чем PHP 7.2 ,
2. Поддержка и совместимость
Совместимость — еще одна важная причина, по которой вы должны использовать последнюю версию PHP. Как и в любом программном обеспечении, разработчики будут поддерживать старые версии PHP в своих плагинах и темах только в течение определенного периода времени. Это приведет к тому, что активная поддержка старого программного обеспечения и обеспечение обратной совместимости будет невыгодной для разработчиков плагинов и тем.
Фактически, проблемы со старыми версиями PHP регулярно возникают на форумах поддержки WordPress.org . Если вы поищете «T_Function», поиск выдаст более 2700 результатов.
Как объясняет Predrag Dubajic, разработчик WPMU DEV, в плагине Hustle ошибки T_Function обычно появляются, когда пользователь имеет устаревшую версию PHP:

3. Безопасность
Еще одна фундаментальная причина, по которой вы должны обновить PHP — это безопасность вашего сайта WordPress. Использование последней версии PHP гарантирует, что ваш сайт защищен от уязвимостей, выявленных в более старых версиях PHP.
Например: согласно данным CVE об уязвимостях безопасности, в этом году в PHP было обнаружено 18 известных уязвимостей. В 2017 году было обнаружено 43 уязвимости, а в 2016 году было обнаружено огромное количество 107 уязвимостей.
Эти уязвимости включают DoS, выполнение кода, внедрение SQL, XSS и многие другие типы эксплойтов.

В WordPress рекомендуется постоянно обновлять версии ядра, плагинов и тем WordPress. Аналогично, чтобы избежать уязвимостей в безопасности, вы также должны поддерживать свою версию PHP в актуальном состоянии.
Проверка PHP-совместимости
Надеемся, мы убедили вас в преимуществах обновления до последней версии PHP. Но прежде чем приступить к обновлению, необходимо выполнить несколько действий: проверить, какая версия PHP используется, а также проверить совместимость вашего сайта с последней версией.
Не знаете, на какой версии PHP работает ваш сайт? Вот как проверить версию PHP на WordPress.
Установите бесплатный плагин Display PHP Version , который можно загрузить из репозитория плагинов WordPress. Когда вы активируете этот плагин, он отобразит версию PHP в виджете «Краткий обзор» на панели управления WordPress.

Перед обновлением вы также должны проверить, что ваши плагины и темы совместимы с последней версией PHP. Для этого можно использовать плагин WP Engine PHP Compatibility Checker. Этот плагин сканирует ваш сайт и проверяет, какие плагины совместимы с тремя последними версиями PHP.

После завершения сканирования он отобразит список ваших плагинов и выделит все, которые содержат код из более старых версий PHP, который теперь несовместим с версией, которую вы только что протестировали.

Если вы обнаружите, что какие-либо плагины, которые вы используете, несовместимы с последней версией PHP, или дают вам неизвестные результаты или предупреждения, свяжитесь с автором плагина и обратитесь за поддержкой.
Как обновить PHP на WordPress
После того, как вы проверили свой сайт WordPress на совместимость — и сделали бекап — вы готовы обновить свою версию PHP.
1. Обновление PHP с помощью cPanel
Если вы используете хостинг, который предоставляет панель управления cPanel, вы можете просто войти в cPanel и изменить там свою версию PHP.
Все, что вам нужно сделать, это прокрутить вниз до раздела «Программное обеспечение» и выбрать «Выбрать версию PHP».

На следующей странице выберите версию PHP, которую вы хотите использовать, и нажмите «Установить как текущую».

Это все, что вам нужно сделать. Обновите свой сайт, чтобы убедиться, что он работает нормально, но если вы проверили совместимость, ваш сайт должен быть в порядке.
2. Обновление PHP на вашем собственном сервере
Если вы управляете своим собственным сервером, вы можете обновить его до PHP 7.2 самостоятельно, используя руководства по миграции, приведенные в документации на php.net. Важно уделять внимание новым функциям и функциям, а также всем устаревшим функциям, которые могут повлиять на ваш сайт.