PHP's share on web-servers is still overwhelming and PHP7 is finally surpassed PHP4

W3techs recently published their annual survey, stating that PHP is used by 82.1% of all the websites (whose server-side programming language they know)

There is also another report says that in August the share of PHP7 is finally got bigger than of PHP4(!) with a steady score of 1.3%:1.1%

4 Likes

Interesting how slow the adoption of new php versions is taking place - 1.3% for php 7 vs 97.7% for php 5! I have moved 90% of my web sites to php 7 and only the most legacy ones are kept on php 5. I don’t consider php 5 for anything new at the moment. I must be in an extremely small minority :smiley:

Is there a simple way to determine a site’s operating system and version. Apparently the source statistics are from Alexa.

Typically the http reply headers will contain this information.

So only includes those who have thee Alexa spambar installed in their browser to spam them.

That 1.3% of people who are that backward are running PHP 7 probably means that over 75% of everyone else is.

@tangoforce
Typically the http reply headers will contain this information.

Can you show an example or a link to further details.

I have looked and cannot see the required information in the header.

There is an HTTP response header for Server - 14.38

https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

But it doesn’t look to be a required header as many of the HTTP response headers I checked didn’t have it, and it seems the value can be “configured”

eg. clicking on a requested Google file in Dev Network shows custom Google values for Server Names such as “cffe”, “cafe” etc.

http://googlesystem.blogspot.com/2007/09/googles-server-names.html

But clicking on an avatar request here shows

In any case, part of me doesn’t want to believe any host is still offering PHP 4.
Another part isn’t all that surprised.

1 Like

Not all servers output their environment details - some webmasters will see it as a threat while others won’t be fussed about it. As the op said “(whose server-side programming language they know)”. In other words of the servers that were giving away details.

This is the sort of thing you would be looking for in a http reply:

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.