Answer the question
In order to leave comments, you need to log in
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
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 ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question