Well, nobody here is going to analyze 5000+ lines of binary dump code. The first post indicating that a signal 11 (segfault) caused this problem is helpful. It means that the PHP code is either overwriting memory in the wrong places, or has run out of stack space, or has tried to access/write a null pointer.
So, is this PHP code something you wrote, or got from elsewhere?