For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts
Whether you use PHP or Perl is moot from a scaling perspective much in the way that the difference between a webapp written in PHP and C is moot. If the difference really mattered, we'd all be writing C, or assembly.
PHP is slow, but that isn't stopping Wikipedia, Facebook, and Yahoo from using it extensively.
There are two major reasons it doesn't matter, from a scaling perspective, which language you choose:
Pick the language that you and your team can develop in most efficiently.