PHP is the programming language that powers WordPress. The PHP version your site runs on directly affects speed, security and compatibility. Newer PHP versions are dramatically faster than older ones — PHP 8.x is roughly 3–4 times faster than PHP 7.x for typical WordPress workloads — and older versions eventually stop receiving security patches. This guide walks through why PHP version matters, the versions available on smartxhosting.uk, how to check what you are running, how to switch safely via Plesk or WordPress Toolkit, the PHP settings to verify after switching, and the OPcache configuration that multiplies the performance gain further.
Why PHP version matters · PHP versions on smartxhosting.uk · Checking your current PHP version · Changing PHP version step by step · PHP settings to check after switching · OPcache — the hidden performance booster · What to do after changing PHP version · Compatibility testing strategies · End-of-life versions and risks · Frequently asked questions
Three measurable impacts:
Each major PHP release brings substantial performance improvements. PHP 8.x is 3–4x faster than PHP 7.x for WordPress workloads thanks to the JIT compiler and countless internal optimisations. Translates directly to faster page load times, better Core Web Vitals, smoother visitor experience — without changing a line of code on your site.
Older PHP versions eventually stop receiving security patches. Running end-of-life PHP means known vulnerabilities remain unpatched indefinitely. Attackers know which exploits work against which PHP versions and target them specifically.
WordPress, themes and popular plugins are developed and tested against current PHP. Deprecated functions get removed. Running ancient PHP means plugins start breaking, WordPress updates start failing, error logs fill up.
All smartxhosting.uk WordPress plans support multiple PHP versions, switchable any time.
Currently available:
| Version | Active support until | Security fixes until |
|---|---|---|
| PHP 8.0 | End of life | End of life |
| PHP 8.1 | Ended Nov 2023 | Dec 2025 |
| PHP 8.2 | Dec 2025 | Dec 2026 |
| PHP 8.3 | Dec 2026 | Dec 2027 |
| PHP 8.4 | Dec 2027 | Dec 2028 |
PHP 8.2 or 8.3 for most sites. PHP 8.3 is ideal for new installations: fastest and still broadly compatible. PHP 8.2 is a safe choice if any plugin flags concerns with 8.3. Avoid PHP 8.1 unless a plugin strictly requires it.
Plesk > WordPress. Each installation card shows the PHP version alongside WordPress version, security status and other details. Quickest way to see all your sites at a glance.
WordPress dashboard > Tools > Site Health > Info. Expand Server section. PHP version listed. Site Health also flags compatibility issues with the current PHP version.
Plesk > Websites & Domains > PHP Settings for your domain. Version shown at the top.
Two routes, same result.
If your plan includes WP Toolkit Deluxe, Smart PHP Updates automatically clones the site, tests on the new PHP version, reports any issues before making the change on live. Risk-free.
PHP directives may reset to defaults when switching versions. Check and adjust.
Plesk > Websites & Domains > PHP Settings:
| Setting | Recommended | Purpose |
|---|---|---|
| memory_limit | 256M | Memory per PHP script. WordPress + plugins need adequate memory for admin tasks. |
| max_execution_time | 300 | Seconds before long-running operations time out (large updates, imports). |
| upload_max_filesize | 64M | Max file size for uploads through WordPress. |
| post_max_size | 64M | Total size of POST data. Must be ≥ upload_max_filesize. |
| max_input_vars | 5000 | Max form fields. Page builders and WooCommerce hit the default 1000 and lose settings silently. |
After adjusting, click Apply. Changes immediate, no server restart.
OPcache is a PHP extension that caches compiled PHP bytecode in memory. Without it, the server reads, parses and compiles every PHP file on every request. With it, the compiled version is reused — massive speed-up.
OPcache is enabled by default on smartxhosting.uk. Verify and tune if needed.
WordPress dashboard > Tools > Site Health > Info > Server. Look for OPcache. Should show "Enabled" with memory consumption details.
Alternative: a plugin like OPcache Status shows real-time OPcache statistics.
For PHP 8.x on a typical WordPress site:
opcache.memory_consumption — 256 (MB)opcache.max_accelerated_files — 20000opcache.revalidate_freq — 2 (seconds between file-change checks)opcache.enable — Onopcache.enable_cli — Onsmartxhosting.uk's server defaults are appropriate for most sites. For heavy WordPress sites with many plugins, request a memory bump from support.
PHP 8 introduced JIT. For pure PHP workloads it provides meaningful gains; for WordPress (which spends much of its time in database queries rather than PHP computation) the gain is smaller but real. Enabled by default on smartxhosting.uk.
Errors at this stage usually surface as white-screen-of-death, 500 errors, or specific plugin failures.
Plesk > Logs > error log. Look for PHP warnings or errors from the last minutes. Deprecation warnings are not critical but indicate plugins/themes not yet caught up with the new PHP version.
After any PHP switch, check for plugin and theme updates. Developers often release compatibility updates for new PHP versions.
LiteSpeed Cache > Purge All. OPcache — restart PHP-FPM if you suspect stale cached bytecode (usually not needed; revalidate_freq handles it).
Some issues only surface under production traffic. Watch error logs for the first 48 hours after a PHP switch.
The Plesk WordPress Toolkit's staging feature clones the live site to a subdomain. Switch PHP on the staging copy, test thoroughly, only apply to production once satisfied. Recommended for any PHP version change on a live site.
Free plugin that scans installed plugins and themes for PHP compatibility issues. Produces a report of deprecated or removed functions. Run before switching to flag problems proactively.
On plans with WP Toolkit Deluxe: automatically clones, switches PHP, tests, reports, rolls back if issues. The safest option.
If a PHP change breaks the site, switch back to the previous version via the same Plesk PHP tab. Takes seconds. Investigate the specific plugin causing problems separately.
Running end-of-life PHP versions (anything older than 8.2 as of 2026) carries real risks:
If your site is on PHP 7.x or earlier, upgrade urgently. If some legacy plugin forces PHP 7.x, the plugin needs replacing rather than the PHP version held back.
Which PHP version should I choose?
PHP 8.3 for new installations. PHP 8.2 for maximum compatibility with a wide plugin ecosystem. Avoid 8.1 unless specifically required; avoid 8.0 entirely (end of life).
Will switching PHP versions break my site?
Usually no, if moving between recent versions (8.2 ↔ 8.3). Sometimes old plugins break on newer PHP due to removed functions or changed semantics. Test on staging first.
How do I know if a plugin is compatible with my PHP version?
Check the plugin's WordPress.org listing for "Tested up to" PHP version. Run the PHP Compatibility Checker plugin. Keep plugins up to date — maintained plugins track PHP releases closely.
Does upgrading PHP require downtime?
No. Switching PHP versions in Plesk is instant — no server restart, no downtime. The next request uses the new version.
What if I upgrade PHP and something breaks?
Switch back via the same Plesk tab. Usually takes under a minute. Then investigate what broke: check error logs, look for the specific plugin or theme triggering errors.
Do I need different PHP versions for different WordPress sites?
Rarely. Keep all sites on the same recent PHP version unless one has a specific compatibility requirement. Each subdomain can have its own PHP version if needed.
Is JIT really faster for WordPress?
Marginally, not dramatically. JIT helps CPU-bound pure PHP workloads. WordPress is IO-bound (database queries, file system). Benefit is real but smaller than going from PHP 7.x to 8.x.
Can I run PHP 7.4 for legacy compatibility?
PHP 7.4 is end of life. smartxhosting.uk no longer offers it for new installs. If you need it for legacy code, the solution is modernising the legacy code, not holding PHP back.
What PHP handler should I use?
FPM (FastCGI Process Manager) application served by Apache — the default on smartxhosting.uk. Best combination of speed and compatibility with WordPress.
How often does smartxhosting.uk update available PHP versions?
New major PHP releases are added to the panel within weeks of upstream release. End-of-life versions are removed. Announcements in the client area and via email.
Launch your WordPress site on smartxhosting.uk
UK hosting with the Plesk WordPress Toolkit, LiteSpeed Cache, Redis object caching, free Let’s Encrypt SSL, free CDN and daily backups — from £2/month.
View WordPress hosting plans →