How can I debug segmentation faults in the PHP CLI?-Collection of common programming errors

I have written some code that I run remotely on a server via the php-cli and a particular method within this code (I’m unsure which method at the moment) is causing a segmentation fault.

Apart from adding exit and echo calls down through my methods and manually pinpointing the bad bits – is there a way to catch the segmentation fault as it happens and find out what piece of the puzzle is crashing? Standard PHP errors are displayed through the error shutdown handlers, I’m unsure where to start with this segmentation fault.

Cheers!