- var_dump: documentation ( source)
<?php
function one () {
two();
}
function two () {
three();
}
function three () {
four();
}
function four () {
five();
}
function five () {
throw new Exception;
}
try {one();}catch (Exception $e){var_dump($e->getTrace());}