debug_print_backtrace

It prints a backtrace

Example

<?php
echo “<pre>”;
function back($arg1, $arg2) {
debug_print_backtrace();
}
back(“test1”, “test2”);
?>

Output

#0  back(Peter, Griffin) called at [/var/www/test/index.php:6]