DePHPugger is an easy to use debugger for PHP, which works from the command line and can also be integrated with any IDE or editor. Here is a GIF screencast that demonstrates the functionality:
There are more demos in the project’s GitHub repository. You can also read this article and watch this video.