markdown guide
 

I know that in our websites we benchmark queries made to the database instead of the PHP performance.

Another thing is a microtime(true) in the beginning and end of your script, and comparing the time, then change some code to see if it produces a slowdown.

But it really depends on what you're doing with your application. It this for a website, crawler, etc?

 

Historically, github.com/lox/xhprof has been the solution to profile PHP applications. However, it hasn't been updated in many years. pecl.php.net/package/xhprof will give you more info about it.

 

Blackfire.io does a great job. Pretty easy to setup. It has a trial, but it's not very expensive thereafter.

Classic DEV Post from May 26

How to Stay Fit Physically and Mentally and Keep Coding

Throughout the last year, I have worked part-time as a working student and also studied at the university. I was not the first and not the last one who has combined that during their studies, but the problem for me was, that at the end of the day I have felt absolutely exhausted mentally and physically. That caused problems with my health and motivation to continue working on my goals or anything. (yeah, “goals,” I wish I had something more specific at that time).

Supun Kavinda profile image
I'm the Founder of Hyvor, Web Developer, Physics Lover, Flutist, and a Table Tennis Player.