How can I measure the speed of code written in PHP? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I measure the speed of code written in PHP?

20th Jul 2017, 12:25 PM
Mansoor. E
Mansoor. E - avatar
1 Answer
+ 1
$startTime= microtime(true); /** Write here you code to check **/ /** Write here you code to check **/ $endTime= microtime(true); echo 'Time Taken to executre the code:'.$endTime-$startTime;
20th Jul 2017, 12:25 PM
Mansoor. E
Mansoor. E - avatar