
If you run WordPress or any server-side web application, you have likely seen PHP version warnings in your dashboard or plugin notices. Many site owners ignore these until something breaks — which should not happen. Your PHP version directly affects performance, security, and compatibility with every plugin and theme on your site. This article explains what PHP versions are and helps you choose the right one.
What Is PHP?
PHP (Hypertext Preprocessor) is a widely-used server-side scripting language that powers WordPress and countless other web applications. When a visitor loads your website, the server runs PHP code to generate the HTML page the browser displays. WordPress relies entirely on PHP for processing content, user authentication, plugin functionality, and database communication.
Your PHP version affects:
- Processing speed (PHP 8.x is significantly faster than 7.x)
- Security (older PHP versions no longer receive security patches)
- Compatibility with WordPress core, plugins, and themes
- Access to modern language features developers rely on
PHP 7.4: Legacy — Use Only When Necessary
PHP 7.4 was released in November 2019 and reached End of Life (EOL) at the end of 2022. This means it no longer receives security patches or bug fixes. Running PHP 7.4 on a production site introduces security risks that cannot be mitigated without upgrading.
When You Might Still Need PHP 7.4
- A legacy plugin or theme that has not yet been updated for PHP 8.x (plan to replace or update it as soon as possible)
- An older custom-built application that requires PHP 7 syntax
- Compatibility testing before a full upgrade to PHP 8.x
AsiaGB continues to offer PHP 7.4 for customers who require it, but we strongly recommend planning an upgrade to PHP 8.2 or 8.3 as soon as your plugins and theme support it.
PHP 8.2: Stable and Recommended for Most Sites
PHP 8.2 is the version recommended for the majority of WordPress websites today. WordPress 6.1 and later supports PHP 8.2 fully, and nearly all popular plugins have been updated for compatibility.
Benefits of PHP 8.2
- Noticeably faster than PHP 7.4 — approximately 20–30% improvement in typical workloads
- JIT (Just-In-Time) compiler for additional performance gains on compute-heavy tasks
- Significantly improved security over the 7.x branch
- Fibers support and other modern features required by contemporary plugins
- Receives security updates until December 2026 (active support ended December 2024)
Recommendation: If you are unsure which PHP version to use, PHP 8.2 is the safe, well-tested choice for most WordPress sites running today. It balances stability, compatibility, and performance.
PHP 8.3: Latest — Best Performance Available
PHP 8.3 was released in late 2023 and brings additional performance improvements and developer-focused features on top of PHP 8.2's foundation.
Benefits of PHP 8.3
- Best overall performance of any currently supported PHP version
- Typed class constants for more precise and reliable code
- New JSON validation functions that are faster and safer
- Ongoing active support and security updates
Things to Check Before Upgrading to PHP 8.3
- Verify that all your plugins and themes explicitly support PHP 8.3
- Test on a staging environment before applying to your live site
- Always back up your files and database before changing the PHP version
PHP 7.4 vs 8.2 vs 8.3 — Quick Summary
- PHP 7.4: End of Life, no security updates, use only if absolutely required
- PHP 8.2: Stable, recommended for most sites, full WordPress support, active security updates
- PHP 8.3: Latest, best performance, ideal for new projects and developers wanting cutting-edge features
Choosing a PHP Version (7.4 / 8.2 / 8.3)
To make the decision easier, the table below summarizes the key facts for each version in one place: release year, support status (Support / End of Life), relative speed, and compatibility with WordPress and most plugins. Use it as a quick starting point. AsiaGB Hosting supports all three versions and lets you switch between them yourself in DirectAdmin.
| Version | Released | Support Status (EOL) | Relative Speed | Compatibility |
|---|---|---|---|---|
| PHP 7.4 | 2019 | End of Life (ended late 2022) — no security patches | Baseline (slowest of the three) | Supports older plugins/themes not yet moved to PHP 8.x |
| PHP 8.2 | 2022 | Still receives security support — recommended for most sites | About 20–30% faster than 7.4 | Supports WordPress 6.1+ and nearly all popular plugins |
| PHP 8.3 | 2023 | Active support + ongoing security updates | Fastest of all currently supported versions | Great for new projects — check older plugins first |
In short, if your site is a typical WordPress install with no special plugin constraints, choose PHP 8.2 as the safest default. If it is a new project or you want maximum performance and are ready to test compatibility, choose PHP 8.3. Use PHP 7.4 only when truly necessary, and plan an upgrade soon — it no longer receives security patches.
Check Compatibility Before Upgrading (WordPress / Plugins / Deprecated Functions)
The most common upgrade problems come from skipping the verification step, not from PHP itself. Sites built with modern code and maintained plugins usually move versions smoothly, but sites with old code or abandoned plugins may call functions that were removed or deprecated in PHP 8.x, leading to errors or a white screen. Before changing the version on a live production site, work through this checklist.
- Update WordPress, your theme, and all plugins to their latest versions first — developers typically add support for new PHP versions in recent updates, so updating beforehand greatly reduces issues.
- Check the Site Health page — in WordPress Admin, go to Tools → Site Health, which warns you if a plugin is incompatible with the configured PHP version.
- Watch for removed functions — for example,
create_function(),each(), andget_magic_quotes_gpc()were removed in PHP 8.x; if a plugin still calls them you will get a fatal error. - Watch for type and argument deprecations — PHP 8.x is stricter about data types; passing
nullto a function expecting a string may be only a warning in 8.1 but cause problems in later versions. - Always test on staging first — clone your site to a subdomain or staging site, change the PHP version there, then click through every important page (home, products, cart, contact form) to confirm everything works.
- Enable the error log during testing — read the PHP error log in DirectAdmin to catch warnings or deprecation notices that do not break the site yet but signal what to fix as it grows.
Tip: If a new version causes problems, simply select your previous version in DirectAdmin (rollback). The site returns to its prior state within seconds, after which you can track down the offending plugin on staging.
PHP Version, Speed, and Security
Many people think PHP versions only concern developers, but they directly affect site owners in the two areas that matter most: speed and security. Both influence user experience and Google rankings alike.
On Speed
PHP 8.x improved the internal engine (Zend Engine) and added a JIT compiler, processing requests faster and using less CPU per request. For a typical WordPress site, moving from PHP 7.4 to 8.2 or 8.3 often noticeably reduces page-generation time (server response time / TTFB) without touching any code. A side benefit: your server handles more concurrent visitors on the same resources.
On Security
When a PHP version reaches End of Life, the PHP team stops issuing security patches for it, meaning new vulnerabilities discovered afterward are never fixed on that version. Running a production site on PHP 7.4 is therefore like using software with no security updates — a risk you can resolve simply by upgrading to a supported version. PHP 8.x also tightens type and error handling, reducing some bug classes that could become vulnerabilities.
Put simply, running a supported PHP version (8.2 or 8.3) gives you a faster and safer site at once — usually at no extra cost, since it is just a version switch on your existing hosting.
How to Change PHP Version in DirectAdmin
AsiaGB lets you select and switch your PHP version directly from DirectAdmin without contacting Support. Follow these steps:
- Log in to DirectAdmin
- Go to Advanced Features and look for PHP Version Manager or PHP Selector
- Select the domain you want to change
- Choose your desired PHP version from the list (7.4, 8.2, or 8.3)
- Click Save or Apply — the change takes effect immediately
- Visit your site and confirm everything is working correctly
Important: Always back up your files and database before changing the PHP version, and test on a staging or development site first before making the change on your live production site.
How to Check Your Current PHP Version
- Create a file named
phpinfo.phpcontaining<?php phpinfo(); ?>and open it in a browser - In WordPress Admin, go to Tools → Site Health → Info → Server
- Check the PHP Version Manager section in DirectAdmin
Frequently Asked Questions About PHP Versions
Which PHP version should I use for WordPress in 2026?
For a typical WordPress site, PHP 8.2 is the recommended default because it supports WordPress and nearly all popular plugins while still receiving security support. For a new project or maximum performance, choose PHP 8.3. Use PHP 7.4 only when you have an old plugin that does not yet support 8.x, and plan to upgrade soon.
What should I do if my site breaks after changing the PHP version?
Go back into DirectAdmin and select the version you were using before (rollback). The change takes effect within seconds and your site returns to normal. Then identify the offending plugin or theme on a staging site before trying the upgrade again. Backing up before every change makes recovery easy if something goes wrong.
Does changing the PHP version affect my database or website files?
Switching the PHP version only changes the interpreter that runs your code — it does not modify your website files or database, so you can switch between versions without losing data. That said, since some plugins write data differently depending on the PHP version, backing up before changing remains the safest approach.
Which PHP versions does AsiaGB Hosting support?
AsiaGB Hosting supports PHP 7.4, 8.2, and 8.3, and you can select and switch between them yourself in DirectAdmin without contacting support. The change takes effect immediately, letting you test compatibility and upgrade at your own pace.
Hosting with PHP 7.4 / 8.2 / 8.3 — Switch Any Time
AsiaGB Hosting lets you change PHP version instantly from DirectAdmin on SSD storage with automatic backups. Starting from 500 THB/year.
View Hosting Plans