I\'m looking for a way to print the call stack in PHP.
Bonus points if the function flushes the IO buffer.
Walltearer's solution is excellent, particularly if enclosed in a 'pre' tag:
- which sets out the calls on separate lines, neatly numbered