What Is PHP? A Plain Guide for Website Owners (And How to Change Your PHP Version)

Pritam Sonone
Verified byPritam Sonone
Read time13 min read
What Is PHP? A Plain Guide for Website Owners (and How to Change Your PHP Version)
Share
Quick answer

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.

php.net home page: PHP is a general-purpose scripting language especially suited to web development; newest release 8.6.0, 3 Dec 2026
php.net home page: PHP is a general-purpose scripting language especially suited to web development; newest release 8.6.0, 3 Dec 2026

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 seeWhat it means for you
Server-sidePHP runs on your hosting server, not in the visitor’s browser
Scripting languageCode that runs line by line each time a page is asked for
.php fileA file of PHP code. WordPress has hundreds of them
PHP versionWhich release your server runs, like 8.4. Your host lets you pick it
PHP extensionExtra add-ons PHP can use, such as image handling or zip files

Read 3 Dec 2026.

How PHP builds a WordPress page

  1. 1Visitor opens a page

    The browser asks your server for yourshop.in/shoes.

  2. 2Server starts PHP

    The web server sees a .php file (WordPress is made of them) and hands it to PHP.

  3. 3PHP runs the code

    WordPress, your theme and plugins run, step by step.

  4. 4Database gives content

    PHP asks MySQL or MariaDB for the post, price or comment.

  5. 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.

W3Techs: PHP is used by 67.8% of websites with a known server-side language; version 8 by 70.3% of PHP sites, 3 Dec 2026
W3Techs: PHP is used by 67.8% of websites with a known server-side language; version 8 by 70.3% of PHP sites, 3 Dec 2026

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)

SoftwareWhat it isRuns on PHP?
WordPress and WooCommerceBlogs, business sites and online shopsYes
Joomla and DrupalOther open-source website systemsYes
Laravel and SymfonyFrameworks developers use to build custom web appsYes
Magento (Adobe Commerce)Large online storesYes
Shopify, Wix, SquarespaceHosted website buildersYou never see or manage the server language
Static sites (plain HTML)Pages that never changeNo 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

LanguageWhere it runsMain job on a website
HTMLIn the browser (it is not really code, it is page structure)Says what is on the page: headings, text, images, links
CSSIn the browserColours, fonts, layout
JavaScriptMostly in the browser (also on servers with Node.js)Menus, sliders, live search, things that move or react
PHPOn the serverBuilds the HTML before it is sent, talks to the database, handles logins and forms
PythonOn the server or your computerWeb 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.

VersionReleasedBug fixes untilSecurity fixes untilWhat to do
PHP 8.619 Nov 202631 Dec 202831 Dec 2030Newest. Check your plugins first
PHP 8.520 Nov 202531 Dec 202731 Dec 2029Safe, supported by WordPress 6.9 and later
PHP 8.421 Nov 202431 Dec 202631 Dec 2028Safe, a solid choice
PHP 8.323 Nov 2023Ended 31 Dec 202531 Dec 2027WordPress’s recommended minimum
PHP 8.28 Dec 2022Ended 31 Dec 202431 Dec 2026Security fixes end this month. Plan to move
PHP 8.1 and older2021 or earlierEndedEndedEnd of life. Upgrade now

Dates from php.net, read 3 Dec 2026. Green: fine. Yellow: plan a move. Red: upgrade now.

php.net Supported Versions table: PHP 8.2 security support ends 31 Dec 2026; PHP 8.6 released 19 Nov 2026, 3 Dec 2026
php.net Supported Versions table: PHP 8.2 security support ends 31 Dec 2026; PHP 8.6 released 19 Nov 2026, 3 Dec 2026

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 requirements: PHP version 8.3 or greater recommended; PHP 7.4 still works but is end of life, 3 Dec 2026
WordPress.org requirements: PHP version 8.3 or greater recommended; PHP 7.4 still works but is end of life, 3 Dec 2026

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.

WordPress core handbook: WordPress 7.1 is compatible with PHP 7.4 to 8.5, 3 Dec 2026
WordPress core handbook: WordPress 7.1 is compatible with PHP 7.4 to 8.5, 3 Dec 2026

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.

Tip

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)

  1. Log in to WordPress.
  2. Go to Tools, then Site Health.
  3. Click the Info tab.
  4. 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)

Hostinger help: check the PHP version under Websites, Manage site, PHP Info; the version shows at the top, 3 Dec 2026
Hostinger help: check the PHP version under Websites, Manage site, PHP Info; the version shows at the top, 3 Dec 2026
  1. Open hPanel and go to Websites.
  2. Hover over your site and click Manage site.
  3. Search for PHP Info in the sidebar (under Advanced) and click it.
  4. 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

Hostinger help: on the PHP Configuration page select a version and click Update; the change applies to all websites on the plan, 3 Dec 2026
Hostinger help: on the PHP Configuration page select a version and click Update; the change applies to all websites on the plan, 3 Dec 2026
  1. Take a full backup of your site (files and database).
  2. Update WordPress, your theme and all plugins.
  3. In hPanel, open Websites, then Manage site for your site.
  4. In the sidebar, go to Advanced, then PHP Configuration.
  5. Under PHP version, select the version you want and click Update.
  6. Confirm the message. Hostinger says the change finishes within a couple of minutes.
  7. Open your site and click around: home page, a post, the contact form, the cart and checkout if you sell things.
  8. 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.
Hostinger help: upgrade to PHP 8.3 or newer if you run 8.2 or older; PHP 8.2 security fixes end 31 Dec 2026, 3 Dec 2026
Hostinger help: upgrade to PHP 8.3 or newer if you run 8.2 or older; PHP 8.2 security fixes end 31 Dec 2026, 3 Dec 2026

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

Hostinger help: .htaccess handler codes per PHP version, and the advice to use PHP 8.2 or higher, 3 Dec 2026
Hostinger help: .htaccess handler codes per PHP version, and the advice to use PHP 8.2 or higher, 3 Dec 2026

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

  1. Go back to PHP Configuration and select the version you had before. The site should come back in minutes.
  2. Check your email. WordPress can email the admin a link to recovery mode when a plugin or theme causes a fatal error.
  3. Find the plugin or theme that failed (the error usually names its folder). Update it, replace it, or ask its developer.
  4. 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

Pritam Sonone
Written and checked by · Updated 3 Dec 2026Pritam SononeFounder, Digital Pritam

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 ×3wordpress.org ×3make.wordpress.orgw3techs.comhostinger.com ×5Show 13
  1. php.net
  2. php.net/supported-versions.php
  3. php.net/eol.php
  4. wordpress.org/about/requirements
  5. make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions
  6. wordpress.org/documentation/article/site-health-screen
  7. wordpress.org/support/update-php
  8. w3techs.com/technologies/details/pl-php
  9. hostinger.com/support/5920192-how-to-check-the-php-version-in-hostinger
  10. hostinger.com/support/1575755-how-to-change-the-php-version-of-your-hostinger-hosting-plan
  11. hostinger.com/tutorials/how-to-change-your-php-version
  12. hostinger.com/support/4047803-how-to-change-the-php-version-for-subfolders-or-subdomains-in-hostinger
  13. hostinger.com/blog/protecting-php2shell
Hostinger setup checklist PDF coverPDF
Free checklist

The Hostinger setup checklist

12 steps we run on every site, plus an email when a big hosting sale opens.

Free. Unsubscribe in one click.

ShareAdd to Preferred Sources
Pritam Sonone
Written and tested by

Pritam Sonone

Pritam Sonone has built audiences online since 2016. He founded the Marathi farming channel Amhi Kastkar (380K+ subscribers), grew Carnot Technologies' Simha Kit channel from 166 to 10,000 subscribers in nine months, and has drawn millions of visits to his WordPress news sites from Google Discover and search. An ex-banker, he is now Operations Manager at Indian Farmer, founder of DigiShivar AI, a Josh Talks and WordCamp speaker, and a WordPress contributor.