Scaling PHP is all about scaling your backend


Or bigger


Debugging and Profiling, look at xdebug (xdebug.org) and apd (pecl/apd)