- array_map: documentation ( source)
- var_dump: documentation ( source)
- debug_backtrace: documentation ( source)
<?php
array_map(
function () {
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
throw new \Exception('test');
},
['foo']
);