get version of php and define how to use debug_backtrace() on core_call_hook()