A
A
Alexander Shapoval2016-06-07 19:28:33
phpstorm
Alexander Shapoval, 2016-06-07 19:28:33

Is it possible to find out the code execution time when debugging in PhpStorm?

I would like to select a piece of code, click "Run", and get the execution time of this code. Is that possible?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Novikov, 2016-06-07
@AlexanderShapoval

The easiest way is microtime (microtime - microtime = execution_time). You can also use the Xdebug profiler (the analysis tool in PhpStorm is Tools -> Analyzing Xdebug Profiler Snapshot ).

R
Rou1997, 2016-06-07
@Rou1997

Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question