debug_print_backtrace
PHP 5, PHP 7, PHP 8
debug_print_backtrace - Prints a backtrace
Code Examples
Example #1 debug_print_backtrace example
Result: #0 c() called at [/tmp/include.php:10]
#1 b() called at [/tmp/include.php:6]
#2 a() called at [/tmp/include.php:17]
#3 include(/tmp/include.php) called at [/tmp/test.php:3]