gdb

→ allows the inspection of programs when they're running

export USE_ZEND_ALLOC=0




valgrind

→ tells you about memory corruption and allocation issues

export ZEND_DONT_UNLOAD_MODULES=1