0

Is it possible to log the execution times of each line of code in PHP?

I'm writing a script, and I want to analyze the execution time of different components of it, mainly for trying to optimize it and generally see how much time takes every command.

Of course that I'd still need good programming skills and knowledge to optimize it well, but I'd like to see actual execution times.

I'm coming from a background in C#, and in Visual Studio going over how commands are executed was very useful when going over scripts.

Thanks in advance! I'm not very knowledgeable about the engine behind PHP.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.