PHP has a var_dump() function which outputs the internal contents of an object, showing an object\'s type and content.
For example:
In my experience, var_dump is typically used for debugging PHP in place of a step-though debugger. In Java, you can of course use your IDE's debugger to see a visual representation of an object's contents.