How can I measure the speed of code written in PHP? | Sololearn: Learn to code for FREE!

+1

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

php

7/20/2017 12:25:12 PM

Mansoor. E

1 Answer

New 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;