I\'m looking for a way to print the call stack in PHP.
Bonus points if the function flushes the IO buffer.
See debug_print_backtrace. I guess you can call flush afterwards if you want.
flush