The below is a code to gauge ur php performance PHP: <?php function micro_time_val($mytime) { $gettime=explode(" ",$mytime); $msec=(double)$gettime[0]; $sec=(double)$gettime[1]; return ($sec + $msec); } $starttime=micro_time_val(time()); //do some tasks $endtime=micro_time_val(time()); $difftime=$endtime-$starttime; print "Your Script Response time is:$difftime"; ?>
Kash, PHP (PHP: Hypertext Preprocessor) is a programming language originally designed for producing dynamic Web pages.PHP is used mainly in server-side application software, but can be used from a command line interface or in standalone graphical applications.
Are there any professional profilers for PHP, as are for Java and C++? It would be nice to have a tool that can easily spot bottlenecks.