Updated: 09 May 2023
echo '<pre>';
$e = new \Exception;
var_dump($e->getTraceAsString());
echo '</pre>';
die;
https://stackoverflow.com/questions/1423157/print-php-call-stack
Freelance software engineer United Kingdom
Updated: 09 May 2023
echo '<pre>';
$e = new \Exception;
var_dump($e->getTraceAsString());
echo '</pre>';
die;
https://stackoverflow.com/questions/1423157/print-php-call-stack