There are a number of things that can cause PHP, and a site in general, to run slow.
First of all, it depends on how PHP is installed. PHP can be installed as a CGI module or an ISAPI configuration. CGI is known to be a tad slower than the ISAPI setup.
Second, PHP is meant to be one of those languages where you sprinkle the code through the HTML, putting all lines of HTML whether or not it has PHP code can slow the rendering because PHP will process all the HTML even if it doesn't do anything.
Third, if you have any database connections or image manipulation routines these are obviously going to take the longest. To help with that you should keep database connections to a minimum and try to limit your queries as much as possible. This goes with pretty much any programming language.
Fourth, your coding could just be badly designed. Obviously if you are iterating through 1 million records and each iteration of a loop you are iterating another loop 10 times you are essentially processing 10 million iterations and that will take a bit of time in any language.
Lastly, it could also depend on the hardware and software you are running it on. PHP on a windows server machine will typically be a bit slower than a linux machine just due to windows eating up a lot of resources.
But overall PHP is typically faster than other server side languages just because of the streamlined code base and the code is interpreted rather than compiled like some of ASP is.
Now this is just PHP but a whole bunch of other things could slow the site down that is not related to PHP.
Hope that answers your question.
This post has been edited by Martyr2: 27 May, 2008 - 06:32 PM