Track calls to functions and methods in PHP. Replace behavior of functions with stubs at runtime.