PHP is the programming language that runs on your web server and builds your pages. WordPress is written in it. You do not need to code in PHP to run a site, but you do need to keep your PHP version up to date. On 3 Dec 2026 the safe choices are PHP 8.3, 8.4, 8.5 or 8.6. PHP 8.2 loses security fixes on 31 Dec 2026, and 8.1 or older is already end of life. WordPress.org recommends 8.3 or newer. On Hostinger, change it in hPanel under Websites, Manage site, PHP Configuration.
If you run a WordPress site, you have seen “PHP” in your hosting panel or in a warning like “Your site is running an outdated version of PHP”. This guide explains what PHP is in plain words, why the version number matters, and exactly where to check and change it.
I read php.net, WordPress.org’s requirements and PHP compatibility table, and Hostinger’s help pages on 3 Dec 2026, and marked up the screenshots myself. I did not log in to any hosting panel for this guide, so the hPanel steps are from Hostinger’s own help pages.
On this page16 sections
What is PHP, in plain words?
Think of a restaurant. The menu and the plates are what the customer sees: that is HTML. The kitchen, where the order is read, the food is made and put on a plate, is PHP. The customer never walks into the kitchen. They only get the finished plate.

The official site, php.net, describes PHP as a popular general-purpose scripting language that is especially suited to web development. The name is a recursive short form: PHP: Hypertext Preprocessor. It is free and open source, and it runs on almost every web host, including cheap shared hosting.
| Word you see | What it means for you |
|---|---|
| Server-side | PHP runs on your hosting server, not in the visitor’s browser |
| Scripting language | Code that runs line by line each time a page is asked for |
| .php file | A file of PHP code. WordPress has hundreds of them |
| PHP version | Which release your server runs, like 8.4. Your host lets you pick it |
| PHP extension | Extra add-ons PHP can use, such as image handling or zip files |
Read 3 Dec 2026.
How PHP builds a WordPress page
- 1Visitor opens a page
The browser asks your server for yourshop.in/shoes.
- 2Server starts PHP
The web server sees a .php file (WordPress is made of them) and hands it to PHP.
- 3PHP runs the code
WordPress, your theme and plugins run, step by step.
- 4Database gives content
PHP asks MySQL or MariaDB for the post, price or comment.
- 5HTML goes back
PHP builds a normal HTML page and the server sends it. The visitor never sees PHP code.
PHP runs on the server, not in the visitor’s browser. A page cache can skip steps 2 to 4 for repeat visits, which is why caching makes WordPress faster.
This is why the PHP version affects your site. Every page that is not served from a cache goes through PHP. Newer versions fix security holes and add improvements, and plugins are written for them.
Is PHP still popular?

Yes. W3Techs, which surveys websites daily, reported on 3 Dec 2026 that PHP is used by 67.8% of all websites whose server-side language it knows. Of those PHP sites, 70.3% run version 8, 22.7% version 7 and 6.9% still run version 5. That last group is running software that stopped getting security fixes years ago.
Big names on its list include Facebook, Wikipedia and WordPress.org. For most small Indian businesses and bloggers, PHP matters because WordPress, WooCommerce and most hosting control panels depend on it.
Where PHP is used (besides WordPress)
| Software | What it is | Runs on PHP? |
|---|---|---|
| WordPress and WooCommerce | Blogs, business sites and online shops | Yes |
| Joomla and Drupal | Other open-source website systems | Yes |
| Laravel and Symfony | Frameworks developers use to build custom web apps | Yes |
| Magento (Adobe Commerce) | Large online stores | Yes |
| Shopify, Wix, Squarespace | Hosted website builders | You never see or manage the server language |
| Static sites (plain HTML) | Pages that never change | No PHP needed |
Read 3 Dec 2026.
If you use a hosted builder, PHP is not your problem. If you run WordPress or any of the PHP software above on your own hosting, the PHP version is one of the few server settings you are responsible for.
PHP vs HTML, JavaScript and Python
| Language | Where it runs | Main job on a website |
|---|---|---|
| HTML | In the browser (it is not really code, it is page structure) | Says what is on the page: headings, text, images, links |
| CSS | In the browser | Colours, fonts, layout |
| JavaScript | Mostly in the browser (also on servers with Node.js) | Menus, sliders, live search, things that move or react |
| PHP | On the server | Builds the HTML before it is sent, talks to the database, handles logins and forms |
| Python | On the server or your computer | Web apps (with frameworks like Django), data and AI work |
Read 3 Dec 2026.
A WordPress page uses all of the first four together: PHP builds the HTML, CSS styles it, and JavaScript adds the moving parts in the browser.
Do you need to learn PHP?
Not to run a site. You need to know which version you run and keep it current. If you want to build your own theme, plugin or custom features, PHP is worth learning, and the free PHP manual on php.net is the official reference.
PHP versions in December 2026
PHP’s support rules are simple. Each version gets 2 years of active support (bug and security fixes), then 2 more years of security fixes only. After 4 years it reaches end of life and gets no fixes at all. A new version comes out every November.
| Version | Released | Bug fixes until | Security fixes until | What to do |
|---|---|---|---|---|
| PHP 8.6 | 19 Nov 2026 | 31 Dec 2028 | 31 Dec 2030 | Newest. Check your plugins first |
| PHP 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 | Safe, supported by WordPress 6.9 and later |
| PHP 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 | Safe, a solid choice |
| PHP 8.3 | 23 Nov 2023 | Ended 31 Dec 2025 | 31 Dec 2027 | WordPress’s recommended minimum |
| PHP 8.2 | 8 Dec 2022 | Ended 31 Dec 2024 | 31 Dec 2026 | Security fixes end this month. Plan to move |
| PHP 8.1 and older | 2021 or earlier | Ended | Ended | End of life. Upgrade now |
Dates from php.net, read 3 Dec 2026. Green: fine. Yellow: plan a move. Red: upgrade now.

Anything not in this table, such as 7.4 or 8.1, is listed on php.net’s end of life page. Hosts still sometimes run these for old sites, but you should not.
PHP and WordPress: which version do you need?

WordPress.org’s requirements page recommends PHP 8.3 or greater, plus MariaDB 10.11 or MySQL 8.4 or newer, and HTTPS. It says WordPress still works with PHP 7.4, but warns that such old versions may expose your site to security problems.

The core team’s compatibility table (updated 4 Nov 2026) shows WordPress 7.1 is tested with PHP 7.4 to 8.5. WordPress 7.0 dropped PHP 7.2 and 7.3, and 6.9 added PHP 8.5. PHP 8.6 was only 2 weeks old when I checked, so it was not in the table yet.
WordPress core is rarely the problem. Old plugins and themes are. On each plugin's WordPress.org page, look for the "Requires PHP" line and the "Last updated" date before you upgrade.
Why your PHP version matters
- Security. End-of-life versions get no fixes. If a hole is found, it stays open.
- Plugin support. New plugin versions raise their minimum PHP. On an old PHP you cannot install the update.
- Your host may force it. Hostinger says versions below 8.2 are deprecated and no longer available to select.
- Warnings in WordPress. The dashboard and Site Health flag outdated PHP and link to WordPress’s “Update PHP” page.
- Speed. Newer releases include performance work. Your gain depends on your site, theme and plugins, so test it.
How to check your PHP version
Way 1: in WordPress (Site Health)
- Log in to WordPress.
- Go to Tools, then Site Health.
- Click the Info tab.
- Open the Server section. The PHP version is listed there.
WordPress’s Site Health guide explains each section of this screen. The Status tab will also show a warning if your PHP is out of date.
Way 2: in Hostinger hPanel (PHP Info)

- Open hPanel and go to Websites.
- Hover over your site and click Manage site.
- Search for PHP Info in the sidebar (under Advanced) and click it.
- Your PHP version is shown at the top. The Build Date is shown too (see the security note below).
Way 3: a phpinfo.php file
Hostinger’s help page shows this method to check one folder or subdomain: create a file named phpinfo.php containing <?php phpinfo(); ?>, upload it to that folder, and open it in your browser. Delete the file straight after. It shows a lot of details about your server that strangers should not see.
Way 4: ask your host or use SSH
Any host’s support team can tell you. On a VPS you can run php -v over SSH. Hostinger notes that on shared plans, php -v shows the plan’s version, not a folder that has its own setting.
How to change the PHP version in hPanel

- Take a full backup of your site (files and database).
- Update WordPress, your theme and all plugins.
- In hPanel, open Websites, then Manage site for your site.
- In the sidebar, go to Advanced, then PHP Configuration.
- Under PHP version, select the version you want and click Update.
- Confirm the message. Hostinger says the change finishes within a couple of minutes.
- Open your site and click around: home page, a post, the contact form, the cart and checkout if you sell things.
- Check the version again in PHP Info or Site Health.
Three things Hostinger’s help and tutorial point out:
- The new version applies to all websites on that hosting plan (except sites made with Hostinger AI Builder).
- Changing the version resets PHP extension values to their defaults. If you had custom settings, set them again.
- Hostinger applies small patch updates (like 8.4.27 to 8.4.28) automatically. You only pick the main version.

Using another host? cPanel hosts usually have Select PHP Version or MultiPHP Manager under Software. Want PHP and WordPress kept current for you? Hostinger WordPress hosting (affiliate link) is one option; compare others in our cheapest WordPress hosting in India list.
Running a different PHP version in one folder

Sometimes one old app in a subfolder needs a different version. Hostinger’s subfolder guide shows how: add a SetHandler rule to that folder’s .htaccess file, using a code such as application/x-lsphp84 for PHP 8.4. Hostinger itself says this does not include PHP extensions and options, and recommends using only 8.2 or higher. Treat it as a short-term fix, not a way to keep an old site alive forever.
Security note: the php2shell fix (October 2026)
Hostinger’s help page mentions two PHP security holes it calls php2shell (CVE-2026-109618 and CVE-2026-109619). It says it installed fixed PHP builds on every hosting plan except VPS, and that a Build Date of 21 October 2026 or later on the PHP Info page means your site has the fix, even if the version number did not change. On a VPS, Hostinger says to update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer) and restart PHP. Its blog post has the details. On other hosts, ask support whether their PHP builds are patched.
If your site breaks after a PHP change
- Go back to PHP Configuration and select the version you had before. The site should come back in minutes.
- Check your email. WordPress can email the admin a link to recovery mode when a plugin or theme causes a fatal error.
- Find the plugin or theme that failed (the error usually names its folder). Update it, replace it, or ask its developer.
- Try the upgrade again once the problem plugin is fixed.
Old, unmaintained plugins are the usual cause. Our free abandoned plugin checker helps you spot them before you upgrade, and our list of essential plugins shows ones that are kept up to date.
Before you upgrade: a short checklist
- Backup of files and database, stored outside the server.
- WordPress, theme and every plugin updated.
- Each plugin’s “Requires PHP” checked on WordPress.org.
- A staging copy tested first, if your host offers one.
- A quiet time chosen (not during a sale).
- The old version number written down, so you can switch back.
New to hosting words? Read domain name and web hosting explained, what VPS hosting is, and WordPress hosting vs web hosting.
Frequently asked questions
What is PHP in simple words?
PHP is a free programming language that runs on a web server. It builds web pages on the fly: it reads your posts, prices or comments from a database, puts them into a page and sends normal HTML to the visitor. WordPress is written mostly in PHP.
Is PHP still used in 2026?
Yes. W3Techs reported on 3 Dec 2026 that PHP is used by 67.8% of all websites whose server-side language it can detect. PHP 8.6 came out on 19 Nov 2026, and new versions arrive every November.
Which PHP version should I use for WordPress?
WordPress.org recommends PHP 8.3 or newer. WordPress 7.1 works with PHP 7.4 up to 8.5. PHP 8.4 or 8.5 is a safe choice for most sites in December 2026, as long as your theme and plugins support it.
What happens when a PHP version reaches end of life?
The PHP project stops fixing security holes in it. Your site still runs, but new problems are not patched, and hosts start removing old versions. Hostinger, for example, no longer lets you select versions below 8.2 in its PHP Configuration page.
How do I check my PHP version?
In WordPress, go to Tools, Site Health, Info, then open Server. In Hostinger’s hPanel, open Websites, Manage site, then PHP Info. You can also ask your host or create a phpinfo.php file (delete it afterwards).
Will changing the PHP version break my site?
It can, if a theme or plugin is old. Take a backup, update everything, test on a staging copy if you can, then switch. If something breaks, switch back to the old version in the same screen.
Do I need to learn PHP to run a WordPress site?
No. You can run a WordPress site without writing any PHP. You only need to know which version your host runs and keep it up to date. Learning PHP helps if you want to build themes or plugins.
Is PHP the same as HTML or JavaScript?
No. HTML describes the page, JavaScript runs in the visitor’s browser, and PHP runs on the server before the page is sent. PHP’s job is to produce the HTML.
About this page
WordPress developer and designer, builds sites for clients · WordCamp Asia Communication Co-Lead · 14K+ subscribers on the DigitalPritam YouTube channel
How we checked
- php.net supported versions and home page read 3 Dec 2026
- WordPress.org requirements, PHP compatibility table and Site Health guide read the same day
- Hostinger help pages on checking and changing PHP read the same day; no hosting panel was logged in to
- W3Techs usage numbers dated 3 Dec 2026
How I got these facts
I read php.net’s supported versions table and home page, WordPress.org’s requirements page, the WordPress core PHP compatibility table and the Site Health guide, Hostinger’s help pages and tutorial on checking and changing PHP, and W3Techs’ PHP usage page, all on 3 Dec 2026. The hPanel steps come from Hostinger’s own help pages, not from a logged-in panel. Version dates change every November, so check php.net if you read this later.
Sourcesphp.net ×3·wordpress.org ×3·make.wordpress.org·w3techs.com·hostinger.com ×5Show 13
- php.net
- php.net/supported-versions.php
- php.net/eol.php
- wordpress.org/about/requirements
- make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions
- wordpress.org/documentation/article/site-health-screen
- wordpress.org/support/update-php
- w3techs.com/technologies/details/pl-php
- hostinger.com/support/5920192-how-to-check-the-php-version-in-hostinger
- hostinger.com/support/1575755-how-to-change-the-php-version-of-your-hostinger-hosting-plan
- hostinger.com/tutorials/how-to-change-your-php-version
- hostinger.com/support/4047803-how-to-change-the-php-version-for-subfolders-or-subdomains-in-hostinger
- hostinger.com/blog/protecting-php2shell
PDFThe Hostinger setup checklist
12 steps we run on every site, plus an email when a big hosting sale opens.
Free. Unsubscribe in one click.


