Xdump is a little PHP library which can provide
full featured variable dumps. It requires the
ability to show the source code around the line
where the dump was invoked. It features
contractible HTML+JS dumps. It shows nicely
backtraces, including source code lines for every
step. Reference checking is used to avoid
recursion. It is object oriented and extendible.