How this works
What is PHP, and is your website running on it?
What is PHP? The code on a web server that builds each page when somebody asks for it. WordPress runs on it, which is why a flaw in it made the news.
PHP is a programming language that runs on the server behind a website. When somebody opens a page, PHP builds it there and then, usually by pulling words and pictures out of a database, and sends the finished page to their phone. WordPress is written in it, which is why most small business websites run PHP whether the owner knows it or not, and why a security flaw in it was on the news this week.

You never see PHP, but if your site is WordPress it runs every time somebody opens a page.
Why is PHP in the news?
Because two critical security flaws in it were made public and fixed on 21 October 2026, and some organisations took their websites offline while they updated. The flaws let an attacker run their own code on a web server without logging in. The UK’s National Cyber Security Centre told organisations to find every PHP install they run and update it.
The two flaws are CVE-2026-109618 and CVE-2026-109619, nicknamed PHP2Shell, and both score 9.2 out of 10 on the standard severity scale. The PHP project says there are no complete workarounds and that updating is the only safe choice. The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Every version going back to 5.4 is affected by at least one of the two, according to Wiz Research, who reported them.
Is my website affected by the PHP vulnerability?
If your site is WordPress, yes, until the server it sits on has PHP updated to a fixed version. The flaw is in PHP, not WordPress, so a perfectly kept WordPress site on an unpatched server is still exposed, and updating WordPress, the theme or the plugins does not fix it.
| Your site | Runs PHP? | Who updates it |
|---|---|---|
| WordPress, shared hosting | Yes | Your host |
| WordPress, own server | Yes | You or your web person |
| Wix, Squarespace, Shopify | Not on anything of yours | The platform |
| Static site, built once | No | Nothing to update |
The “70 per cent of the internet” headlines are PHP’s share of websites, not the share that can be broken into. Hosts got the fix early, and the public exploits need particular server conditions. That does not mean you can ignore it. It means the right reaction is one email to your host, not panic.
How do I check my PHP version?
In WordPress, go to Tools, then Site Health, then the Info tab, and open the Server section. You need the version to the last number, so 8.3.36, not just 8.3.
- Safe: 8.5.12, 8.4.27, 8.3.36, 8.2.35 or anything newer in the same series
- Ask your host: an older number in those series, because some hosts patch without changing it
- Out of date: 8.1 or anything older, whatever else is true
What should I ask my host?
“Have you updated PHP?” gets “yes, we keep everything up to date”. These get a real answer:
- Which PHP version is my site running right now?
- Is that one of 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or a package with the fix for CVE-2026-109618 and CVE-2026-109619 backported?
- When was it applied, and were the PHP workers restarted afterwards?
Send it by email or a support ticket so you have the answer in writing. If they cannot answer the version question, that tells you something about the hosting.
Has my site already been hacked?
Probably not, but check rather than assume. Signs on a small business site are pages you did not
make showing up when you search site: and your domain on Google, visitors being redirected to
another site (sometimes only on phones), a “This site may be hacked” note in Google results, a
Security issues message in Search Console, or an email from your host about suspicious files.
If any of those appear, tell your host straight away. Once the server is patched, not before, change the passwords for the hosting, the WordPress admin and any FTP accounts. A patched server and a clean check are the end of it for most small sites. Patching does not hurt your Google visibility. A site left hacked does, because Google warns people away from it.
The rest of this page is the background: what PHP actually is, and how to tell if your site uses it.
What is PHP used for?
PHP is used to build web pages on the server, at the moment they are asked for. That is what lets a website show the latest blog post, send a quote request to your email, or let you log in and change your own prices without touching any code.
On a small business website, that usually means:
- Building each page from what is stored in the database, so you edit a page in WordPress and the change is live straight away
- Contact, booking and quote forms, taking what the customer typed and emailing it to you
- Logins, for you in the admin area and sometimes for customers
- Shops and bookings, taking an order or a deposit and keeping a record of it
The big names built on PHP are WordPress, Drupal, Joomla and Magento, plus the Laravel framework that a lot of custom built sites use. Rasmus Lerdorf wrote the first version in the mid 1990s to look after his own home page. It has been rewritten many times since and is maintained by the PHP project at php.net.
How does PHP work?
PHP sits on the web server and runs every time a page is requested. The visitor’s phone asks for a page, the server runs the PHP code, the code reads whatever it needs from the database, and the page is put together and sent back. The visitor only ever sees the finished page, never the PHP.
The other way to build a site is static. The pages are built once, in advance, into plain files, and the server just hands over the file that is asked for. No code runs on the server when somebody visits.
| PHP site | Static site | |
|---|---|---|
| Page built | On every visit | Once, in advance |
| Edit it yourself | Yes, in the admin | Usually via whoever built it |
| Server code to update | Yes | None |
Neither is right for everybody. PHP is what lets you log in to WordPress and change a page at ten at night. The price of that is code running on a server, and code running on a server has to be kept up to date.
PHP is the engine under most small business websites. You never see it, but it is the part that has to be maintained.
Is PHP the same as HTML?
No. HTML is the finished page your browser reads and displays. PHP is the code on the server that writes that HTML before sending it. A visitor’s browser never receives any PHP, only the HTML it produced, which is why you cannot tell a site runs PHP just by looking at it.
Is WordPress PHP?
Yes. WordPress is written in PHP and cannot run without it, so every WordPress site sits on a server running PHP. W3Techs puts WordPress at 39.6 per cent of all websites as of 22 October 2026, which on its own makes it the biggest single reason PHP is everywhere.
The PHP version is set by whoever runs the server, normally your host, not by WordPress. Updating WordPress and its plugins is your job or your web person’s. Updating PHP underneath it usually is not.
Is PHP still used in 2026?
Yes, by most of the web. W3Techs, which surveys the technology behind millions of sites, puts PHP at 69.3 per cent of websites whose server language it can identify, as of 22 October 2026. That is where the “70 per cent of the internet” headlines this week came from.
People have been calling PHP old fashioned for twenty years. It is still the language under more websites than anything else, and it is still being developed, with PHP 8.6 in testing now.
How do I know if my website uses PHP?
Start with what the site is built on. If it is WordPress, it runs on PHP, full stop. If you are not sure, any of these will tell you:
- You log in at your domain followed by
/wp-admin. That is WordPress, so PHP. - Your hosting dashboard is cPanel or similar and has a “PHP version” or “MultiPHP” setting.
- Some page addresses on your site end in
.php. - Your host’s support team can tell you the PHP version in one reply. Ask.
If your site is on Wix, Squarespace or Shopify, the platform runs the servers. Whatever language they use underneath, keeping it updated is their job, not yours.
Is PHP safe?
PHP is as safe as the version you are running and the person keeping it updated. Like any software it has security flaws found in it, and they are fixed in new releases. The danger is a site left on an old version that no longer gets fixes, which is common on small business sites set up years ago and never touched since.
Which PHP versions are still looked after, according to php.net:
| Version | Security fixes |
|---|---|
| 8.5, 8.4, 8.3 | Yes |
| 8.2 | Until 31 Dec 2026 |
| 8.1 and older | Not from PHP itself |
Some hosts backport fixes to older versions themselves. If yours does, they will be able to say so.

On a WordPress site, PHP is what takes the quote form she fills in and turns it into an email to you.
Do I need to move my website off PHP?
Probably not. A WordPress site on a decent host, on a supported PHP version, with plugins kept updated, is a perfectly good website for a small business. Moving away from PHP for the sake of it is a lot of work to solve a problem you may not have.
It is worth thinking about a rebuild when:
- The host cannot upgrade PHP because the theme or a plugin breaks on anything newer
- Nobody updates the site, and nobody is going to start
- You never edit it yourself, so the login and the database are only there to be broken into
That last one is common with small business sites. If the site is five pages that change twice a year, all the machinery that lets you edit it at ten at night is doing nothing except needing updates. That is why the websites I build for small businesses are static.
If your site is WordPress and it works, the useful thing to do today is find out which version of PHP it is on. One email to your host answers it.