That's just CGI. You could theoretically do the same with any other language, but PHP is just the most popular.
I'm actually not sure that fcgi is that bad, even for other languages, but most shared hosts will probably limit what you can do in terms of resources.