(PHP 7, PHP 8)
Throwable::getTrace — Gets the stack trace
Returns the stack trace as an array.
This function has no parameters.
Returns the stack trace as an array in the same format as debug_backtrace().