views:

6503

answers:

20

I have seen various statistics on language popularity based on search engine results, number of books published, open source projects developed, etc. but none of them is specific for web development (on the server side). Almost all of them shows Java, C and C++ as the most popular. I wonder how PHP, which was created explicitly for web development and is rarely used for other purposes, stack up against these languages, Java in particular.

Are there any statistics comparing this languages (not frameworks or IDEs) in a web development context?

+8  A: 

In general, it's hard to automatically gather these statistics, because you cannot see what language the server is actually running. On http://www.langpop.com/ you can see the Craigslist job postings for programmers skilled in various languages; that should at least give an indication.

Thomas
Link is not working, pal.
Adeel Ansari
Works for me. Javascript required, though.
Thomas
Now its working fine. Not sure why didn't work for the first time. Thanks, anyway.
Adeel Ansari
www.langpop.com is very good but it's not web specific.
Angel Chiang
Hmm, you're right. Must've overlooked that when Google sent me there...
Thomas
+1  A: 

Not an answer, but at least somebody has considered this question before:

http://www.jasonhanley.com/blog/2007/07/26/most-popular-web-languages-frameworks/

David Zaslavsky
+18  A: 

This is pretty subjective question in first place so my answer will be

PHP

Without further argumentation.

OscarRyz
I dont think so :)
Shoban
I'm looking for statistics. Numbers. Like the TIOBE index but for web development.
Angel Chiang
-1; zero analysis or justification.
Rob
+1; Would you ask for justification if someone claimed "The sky is blue"?
ThomasD
I prefer Paschal, it aligns the bits better when it compiles ;-)
Chris Ballance
Just about every hosting company offers PHP on their servers. The percentage of ASP.NET, ColdFusion, JSP, and similar is much lower.
Joshua Carmody
@Rob: The questions is subjective and argumentative in first place. There is not a real answer for this. That's why I mark my answer as community wiki.
OscarRyz
@TomasD: Well, one answer I have had, is.. because god is male? .... :P But more seriously, I been told the blue is the color were the sun light travels faster. That's the reason. The red were light travels slower ( thats why dusk is red ) That's also the basic principle in which 3D films are based
OscarRyz
Statistics can be found here: http://w3techs.com/technologies/overview/programming_language/all
Sam
+1  A: 

HyperText Markup Language. ;)

routeNpingme
HTML is not a programming language.
Adeel Ansari
hahahaha ... that's funny
OscarRyz
It's a markup language, not a programming language.
cole
It can do simple <div>...
VirtuosiMedia
Wait, is that HTML? "HyperText" doesn't fit well with it.
Luca Matteis
Voted down: not a programming language.
Wayne Koorts
JPEG is much more popular. Though I prefer to program in PNG.
RegDwight
Dang people. Relax. Programmers have no sense of funny, huh? ;)
routeNpingme
This is not funny.
Gumbo
+1 It's not a programming language per se, but there sure are a lot of programming languages writing it to my browser.
Chris Ballance
I certainly value it over PHP ;-)
Chris Ballance
@Gumbo - Oscar thought it was funny. Did you not read the 2nd comment?
routeNpingme
A: 

PHP. .NET* as a close second.

* Within .NET, I'd say C# is most popular.

Jonathan Sampson
Do you have links to statistics on this?
Franci Penov
C# close second?? :-o
OscarRyz
Based on personal experience :) Note, "Popularity" != "Most Used" in my opinion.
Jonathan Sampson
+1  A: 

Ruby is certainly gaining traction in web-dev shops too; Rails is pretty easy to learn and bash out an application in.

Adam Hawes
Really? It seemed to be all the rage two year (or was it three?) years ago. Haven't heard too much about it since. What evidence is there for "gaining traction"?
erickson
It's just my observation, sitting nexy to a Ruby dev shop; there seems to be more Ruby work being done in ours and other shops recently.
Adam Hawes
A: 

Updated response*

Found this very interesting article that has a bit more "User & Developer" information here

End Update

I would have to say the MAJORITY of site I have worked on/with have all been php based in some form or another...

I am seeing a lot of mixed php/js/jquery sites popping up.

i believe this stems mostly from the plathera of free information and resources for php -vs- anything M$

Just my 2c

Tim
Funny, the MAJORITY of the sites I have worked with/on have been Perl-based. I wonder whether this sampling may be biased by my preference for working primarily in Perl...
Dave Sherohman
A: 

Unfortunately I think it's PHP.

I say unfortunately because PHP sucks!

hasen j
Are you saying it is unfortunate that PHP sucks? Or are you saying it sucks that PHP is unfortunate? ;-)
ThomasD
I am trying to measure popularity, not suckyness. ;-)
Angel Chiang
unfortunate is that it's popular :)
hasen j
+4  A: 

Count the StackOverflow tags.

Currently, the 3 most popular web-specific languages in order are:

  1. J2EE
  2. ASP.NET
  3. PHP
routeNpingme
uhhh... Java is not web-specific language. You should not count it there.
OscarRyz
I wonder if StackOverflow has more ASP.NET followers due to being written in ASP.NET?
Jess
Do you use google because they use python?
annakata
@annakata: SO started with a large .net community so it may be slightly biased towards ASP over PHP.
Neil Aitken
Actually, that just tells you which technologies people are having the most trouble with ;-)
Wayne Koorts
@Wayne hahaha that's awesome
routeNpingme
A: 

You can't measure this by looking at Google results extension. That could mean that there is more crappy PHP out there, not that it's more popular. I'm just saying.

+3  A: 

I believe and have heard experts telling the best for web are:

  1. Java
  2. PHP
  3. ASP.NET

and even for that matter SSI is used for simple validations on the server side.

A: 

Google or search results is not a proper way of measuring. A lot of intranet Java applications are written in Java and .NET also. Java is used for a lot of MVC frameworks, Resin compiles PHP to Java. Also a lot of job placements happen on private mailing lists, not on Craigslist.

+1  A: 

Here's a comparison site:

http://www.langpop.com/

Gary Willoughby
That is the kind of comparison I am looking for but restricted to server-side web programming. That is for general programming.
Angel Chiang
+2  A: 

Based upon the blogosphere that I read I tend to believe:

  1. Java
  2. PHP

I have seen arguments about whether HTML and javascript are actually languages, but I definitely think JS is one of the most utilized web languages out there, especially with the countless frameworks (mootools, dojo, mochi, bajax, sajax, solvent, overlib, wz_, qooxdoo, toxic, zembro, yui, x, prototype, scriptaculous, jquery, xoad, symfony, etc etc) and even server side pieces (Ajaxer) all being developed and utilized by the world over.

Sadly, I have no hard statistics to support this.

"Arguments about whether HTML and javascript are actually languages"? Now that's funny. JavaScript is a programming language, by definition. HTML is a markup language, by definition. I see no room for arguing.
RegDwight
And JavaScript is almost always used on the client side. This use is excluded from the question if you read the description.
Angel Chiang
+5  A: 

Define popular?

Popular in regards to what people are talking about? Then clearly the web is running entirely on Rails.

Popular in regards to what is used in the greatest quantity? Then clearly the web is defined by a lot of free/uber-cheap hosting services with the standard LAMP (PHP) setup, all programmed by a 15 year old who thinks M$ must sux0r because the other kids on MySpace told him so.

Popular in regards to what businesses want to run real money making enterprise on? Now we've got question. For anything older then a few years doing e-commerce and the like, it's almost certainly Java (unless we're talking ancient CGI). If it's mostly web design with a few counters and other widgets, PHP. Up and coming, that's a split between ASP.NET taking over the Java space, and Rails making inroads on PHP, but with no threat of extinction to the previous.

David
Any definition of popular is OK as long as it is clear, there can be multiple answers depending on the point of view. But I'm looking for statistics. Yours would be a good answer if it was based on a study, a survey or some kind of research, with hard data and not just your perception.
Angel Chiang
+2  A: 

If you talk about popularity in terms of how much of the rendered pages are by a language then Python sure scores ahead. (Because Google mostly uses Python.)

Lakshman Prasad
A: 

My guess would be

  1. PHP
  2. ASP.NET
  3. Java

This is entirely based my gut but here is my rationalization: So many open source CMS Systems are based on it I have to believe PHP is the most widely used. Many businesses like the MS solution so I submit asp.net as number 2. I work primarily in Java so there.

N8g
A: 
  1. PHP
  2. ASP.NET (C#)
  3. ASP.NET (VB)
  4. Classic ASP
  5. Ruby
  6. Java
  7. ColdFusion
Scott
A: 

Google Insights for Search can show trends in searches regarding various languages and topics. Here is an example: This example shows "web programming" from 2007 to 2009 worldwide.

The top searches were:

  1. php web programming

  2. php programming

  3. java web programming

  4. web programming python

  5. python web

  6. java programming

But, C# was one of the fastest rising searches.

jle
A: 

I'm surprised Perl wasn't mentioned. After all, it is called the 'duct tape of the Internet'!

igotmumps