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.