I think it depends on many things.
I have some suggestions, but maybe someone is better.
i started to code the game xo. (I do not know the name in English), you need to put five or x in a row. it is also based on bends. I had only a few hundred codes in php and a bit more in javascript, but the game was very slow. in 2player mode, the request-response sometimes hits 1-2 seconds, but the server is on my desktop. therefore, the actual transmission time is not required.
I think that if you create a light game, with easy calculations php is very good, easy to develop, also OOP.
but I think the best way to create your own server program in C ++ or C #.
I'm very crazy and I am added to speed: D, so I created a simple implementation of C ++ sockets and ajax communications, and I redirected my own apache web server to my program, and I answered with my program, so I was capable create 4-5 milisecfifference between request and response.
if you want to create a slightly larger game for about 100 players, I think that the native program is better, because you can store data in RAM that you do not need to execute mysql queries for each time, you can easily store data, but you need to create an interface for communication via HTTP.
source share