WordPress PHP Versions
WordPress PHP Versions
1. Overview
WordPress substantially relies on PHP to work and operate. Updates for both platforms are being
published regularly to fix security loopholes and bring enhancements in usability and performance.
Thus, WordPress users have to continuously update their software and confirm its compatibility with
supported PHP versions.
WordPress PHP versions depend on the compatibility between WordPress and PHP. As each version of
WP requires specific minimum PHP requirements. In this context, this article aims to explore the
compatibility of the multiple versions of WordPress with PHP, in light of continuous updates being
published on a regular basis for both platforms.
When published, each PHP version remains supported for a period of 3 years from its initial stable
release, the support period runs over two main successive phases:
2-Years Active Support: the support includes fixing BOTH BUGS and SECURITY ISSUES.
1-Year Security Support: the support includes fixing ONLY CRITICAL SECURITY ISSUES.
Once the support period is completed (after 3 years), the version reaches its end of life (EOL) and
becomes no longer supported. It’s strongly not recommended to use an unsupported version of PHP as
it might expose the application using it to security vulnerabilities and bugs.
3. WordPress Current PHP Versions
The official PHP website maintains a specific webpage to check the status of supported versions.
Accordingly, the currently supported PHP versions that can be safely used for WordPress are:
Technically speaking, each version of WordPress has specific PHP versions that it is compatible with.
That being said, although the software might work on legacy PHP versions that reached their End Of
Life, the platform recommends using only supported PHP versions.
Here is a list of the compatible PHP versions for each version of WordPress, knowing that we only
consider WP versions that can work with the currently supported PHP versions:
As WordPress recommends, we highly urge you not to use the minimum version in case it is not
supported, even if it is compatible with your website’s WordPress version.
For this reason, we mention here the minimum PHP requirements for each WordPress installation.
Knowing that we cover only WordPress versions that are compatible with supported PHP versions.
MINIMUM
WORDPRESS VERSION MINIMUM PHP VERSION (SUPPORTED) PHP
VERSION
WordPress 6.1
PHP 5.6 PHP 8.0
WordPress 6.1.x
WordPress 6.0
PHP 5.6 PHP 8.0
WordPress 6.0.x
WordPress 5.9
PHP 5.6 PHP 8.0
WordPress 5.9.x
WordPress 5.8
PHP 5.6 PHP 8.0
WordPress 5.8.x
WordPress 5.7
PHP 5.6 PHP 8.0
WordPress 5.7.x
WordPress 5.6
PHP 5.6 PHP 8.0
WordPress 5.6.x
6. What Is The Recommended PHP Version For WordPress?
As mentioned earlier, each WordPress installation requires specific PHP requirements. That said, the
best and recommended PHP version for WordPress depends on which version of WordPress is being
used.
WordPress Recommended PHP Version is the latest supported version which is compatible with your
website’s WordPress version.
Here is a list of the recommended PHP version for each WordPress, we only mention WP versions that
are compatible with supported PHP versions:
WordPress 6.1
PHP 8.x*
WordPress 6.1.x
WordPress 6.0
PHP 8.0* | PHP 8.1*
WordPress 6.0.x
WordPress 5.9
PHP 8.0* | PHP 8.1*
WordPress 5.9.x
WordPress 5.8
PHP 8.0*
WordPress 5.8.x
WordPress 5.7
PHP 8.0*
WordPress 5.7.x
WordPress 5.6
PHP 8.0*
WordPress 5.6.x
* Beta support: This means the compatibility of WordPress with PHP is still being tested. If you prefer
to avoid any hassles or you found it difficult to upgrade to a beta-support PHP version, we recommend
using the latest fully-supported PHP version till the beta test ends. You can just follow this article for
future updates.
7. What Is The Latest PHP Version for WordPress?
PHP work on a continuous basis to update their framework and fix bugs and security issues.
Similarly, WordPress aims to support new versions of PHP as they are being published.
The latest version of PHP that is currently supported by WordPress is PHP 8.2 and it’s
supported by WP 6.1.
Nevertheless, the compatibility of WordPress with PHP 8.x is still in the beta support phase.
That said, most WordPress functionalities will work but you might expect some minor issues
to happen sometimes.
Furthermore, some plugins and themes might be not yet compatible with PHP 8.x. So we
recommended checking the compatibility of your addons before updating to recent versions
of PHP.
To read our easy guide with pictures to finding PHP version in WordPress without a
plugin please refer to this article. In case you are unable to access the admin control panel,
you can find the PHP version by accessing your hosting cPanel or consulting your hosting
service provider.
What is AJAX?
AJAX = Asynchronous JavaScript And XML.
A browser built-in XMLHttpRequest object (to request data from a web server)
JavaScript and HTML DOM (to display or use the data)
AJAX is a misleading name. AJAX applications might use XML to transport data, but it is
equally common to transport data as plain text or JSON text.
AJAX allows web pages to be updated asynchronously by exchanging data with a web server
behind the scenes. This means that it is possible to update parts of a web page, without
reloading the whole page.
How AJAX Works
Glossary
What Is AJAX?
AJAX stands for Asynchronous JavaScript and XML. It is a set of web development to
build more responsive websites and applications. AJAX allows web pages to update
their content without users having to reload the page.
AJAX is derived from JavaScript’s function to allow for a more interactive
experience. JavaScript creates, adds, and manages dynamic structure by monitoring
which content requires real-time updates while a visitor is accessing a website.
Get a modern, fully-responsive website without needing to write a single line of
code.Build Your Website
Meanwhile, Extensible Markup Language (XML) transports the data between the web
server and the browser. Aside from XML, other formats like plain text and JSON are
frequently used for exchanging data.
JavaScript and Extensible Markup Language work together under AJAX to ensure the
web page content is updated asynchronously. In other words, with AJAX, site content
can be updated without reloading the entire page.
The browser sends an HTTP request to the The browser creates a JavaScript call, which then
server. creates a new XMLHttpRequest object.
The browser receives the data from the The browser uses JavaScript to process the response
server and reloads it as an HTML page. and displays the updated content directly on the
Users have to wait until it finishes loading.
Therefore, the conventional model HTML page without reloading.
increases the load on the server and is
more time-consuming.
AJAX allows the data exchange and presentation layer to work simultaneously without
interfering with each other’s functions.
This was not the case in the early 90s when this new technology was yet to be
introduced. You had to reload Google for a new recommendation to appear on your
screen.
Here are more helpful examples of the AJAX method in our everyday lives:
Voting and rating systems – once you click a rate or vote button, the website
automatically updates the calculation without refreshing the page.
Chat rooms – some websites implement a built-in customer support chat room
on their main page. Using AJAX, you can talk with a customer support
representative while exploring the website. The web page won’t need to reload
whenever you send or receive a new message.
Social media – many social media applications, such as Twitter use AJAX to
update their users’ timelines. The system will request and retrieve data from the
server when you post a new tweet. Then, it will display the new tweet on top of
the timeline.
Learn JavaScript AJAX in 1 hour by Udemy – this course will teach you how
to use AJAX to run GET and POST requests, create an interactive experience,
and build dynamic content. It consists of an hour-long video, and the price
is $14.99.
JavaScript and AJAX: Integration Techniques by LinkedIn Learning – in this
course, you will learn the basic principles of AJAX and how to incorporate XML,
jQuery, and JSON. This course costs $34.99.
Intro to AJAX by Udacity – this free course will teach you how to make
asynchronous requests using jQuery’s AJAX functionality and user data APIs.
You will also get to build a web application to practice your skills.
AJAX Introduction by W3Schools – in this free course, you will learn about the
basics of AJAX. In addition, W3Schools provides quizzes and practices in every
section to test your knowledge.
AJAX Tutorial by Tutorials Point – this free course will teach you the basic
principles of AJAX and how to apply it. Tutorials Point also recommends other
courses related to the topic to help you understand AJAX better.
AJAX is a universally used technique and an essential part of front-end development,
making it one of the most in-demand skills. According to Glassdoor , the
average salary of a front-end developer is around $102,000/year.
Developers with less than one year of experience earn about $100,000/year. On the
other hand, senior front-end developers may receive an average salary of
over $120,000/year.
Cons
If your browser doesn’t support or enable JavaScript, it will not load web pages
using AJAX properly.
Anyone can view the source code of a web application developed using AJAX,
making it less secure.
AJAX works asynchronously. Therefore, some page information may not
correspond to a newly loaded one.
When a user hits the back button on their browser, they may not return to the
previous state of the page. Successive AJAX requests are not saved to the
browser’s history.
Debugging a web page built using AJAX may be difficult.
Multiple server requests consume more data.
Make sure your website can handle everything – from high traffic to fast loading times,
and more.Buy Web Hosting
Conclusion
AJAX is a collection of web development techniques primarily used to send and
receive data from a server asynchronously.
AJAX lets you create a dynamic and interactive experience. It automatically adds new
information to the existing page without reloading the entire website.
As the method becomes more popular, there are many job opportunities for web
developers with knowledge of AJAX. We have compiled a list of resources to help you
learn AJAX, including online courses from Udemy, Linkedin Learning, Udacity,
W3Schools, and TutorialsPoint.
In addition, we have explained the pros and cons of building an AJAX application.
We hope this article has helped you understand AJAX better. If you have any
questions or suggestions, please leave them in the comments section below.
AJAX communicates with the server using XMLHttpRequest object. Let's try to understand the flow of
ajax or how ajax works by the image displayed below.
As you can see in the above example, XMLHttpRequest object plays a important role.
1. User sends a request from the UI and a javascript call goes to XMLHttpRequest object.
2. HTTP Request is sent to the server by XMLHttpRequest object.
3. Server interacts with the database using JSP, PHP, Servlet, ASP.net etc.
4. Data is retrieved.
5. Server sends XML data or JSON data to the XMLHttpRequest callback function.
6. HTML and CSS data is displayed on the browser.