Skip to content

Instantly share code, notes, and snippets.

@rfulwell
Created April 23, 2019 23:25
Show Gist options
  • Save rfulwell/25494bed8356e53278978f798cc66715 to your computer and use it in GitHub Desktop.
Save rfulwell/25494bed8356e53278978f798cc66715 to your computer and use it in GitHub Desktop.
PHP interpreter output from `debug_backtrace()`
#BP:debug_print_backtrace() running in [/var/www/html/a.php:36]
#0 a_class::a_function(1) called at [/var/www/html/b.php:24]
#1 b_class::b_function(1, two) called at [/var/www/html/c.php:9]
#2 c_class::c_function(param) called at [/var/www/html/c.php:13]
Array
(
[0] => Array
(
[file] => /var/www/html/b.php
[line] => 24
[function] => a_function
[class] => a_class
[type] => ::
[args] => Array
(
[0] => 1
)
)
[1] => Array
(
[file] => /var/www/html/c.php
[line] => 9
[function] => b_function
[class] => b_class
[type] => ::
[args] => Array
(
[0] => 1
[1] => two
)
)
[2] => Array
(
[file] => /var/www/html/c.php
[line] => 13
[function] => c_function
[class] => c_class
[type] => ::
[args] => Array
(
[0] => param
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment