- var_dump: documentation ( source)
- debug_backtrace: documentation ( source)
<?php
function outer_function() {
var_dump(debug_backtrace());
}
class ExampleObject {
function __construct() {
outer_function();
}
}
new ExampleObject();