There are arguments out there on the best technologies but there is just one argument that is really common among web developers which is Node.JS VS PHP. It's very funny when a framework is competing with a whole programming language. Web developers mainly should look into this before arguing as PHP has frameworks under it too.
PHP is a popular general-purpose scripting language that is especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994; the PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor. PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code – which may be any type of data, such as generated HTML or binary image data – would form the whole or part of a HTTP response. It is actually processed by an interpreter called The Zend Engine. And now it is used on more than 85% of web servers that is installed on web servers such as Apache and Nginx
PHP's environment is easier to setup or configure: In PHP, it is very easy to setup a server and start using it's PHP's environment. For example, it is really to setup PHP in servers like WAMP (Windows, Apache, MySQL, and PHP) or XAMPP (Cross-Platform).
Ease to use: Any individual who is new to programming can easily learn to used them within a short period of time. The syntax for programming in the hypertext preprocessor is quite similar to the C programming language. So the individual who is familiar with C can easily create PHP website scripts.
All internet hosting services support: PHP supports most hosting services like Hostinger, Bluehost etc PHP is widely used in hosting because Node.JS is a type of language that is hosted by some services, so people use PHP because of this.
PHP works with most CMS (Custom Management System) and supports frameworks: PHP is a language that works with CMS technologies like WordPress, Blogger etc. It also support well-known frameworks like Laravel too.
CMS such as WordPress, Drupal, Blogger, etc, even if there is only a part of your project includes these technologies (for blog, home page admin page, online store etc.): This pages come along with the CMS technology and you can just add an article on a particular page with CMS.
Using a relational database is supported in PHP.
Here are the benefits of Node.js:
It is scalable: Node.js scalability is one of the core benefits for those startups that are looking to grow. Being a lean technology tool, it fits well for microservices architecture, which in turn ensures better flexibility. With Node js programming language the app logic is broken into smaller modules, thus developers can easily add more modules to the existing ones, instead of integrating new features with the large monolithic core.
PHP has just won in different cases as most PHP developers are looking for a technology which is easier to use. PHP is a very interesting language and even when you see the basic syntax, you will find it easy and know how easy the language is. PHP has been used in over 290,000 open source projects and it has been used in the creation of top companies in the world. PHP is the main back-end programming language which has a relational database and works with a server and then you run it on localhost in your web browser. PHP has been used in creating CMS technologies like Joomla, WordPress and even Drupal. PHP is open source too and large amounts of Database can be stored in PHP, in the latest version of PHP, it has extended support for Object Oriented Programming. It also has an improved support for MySQL with new extensions.
Where Node.JS wins
Let's go for the testing, here is the real Node.js vs PHP so we just have to test both sides, the testing here has been done by most evelopers and it has also been published in many articles. So, let's go for PHP:
In the testing, PHP was even faster than Node.js in reading the file, filing array, MySQL Query etc.