Reputation: 6843
In an interpreted language like PHP it is possible in theory to set up some sort of callback function that would be run indiscriminately after every line of code. I am wondering if such a thing exists in PHP or if such a thing could be accomplished in any way? Such a feature could be useful for diagnostics or performance tests. Does anyone know of such a mechanism in PHP?
Upvotes: 1
Views: 338
Reputation: 157828
http://php.net/manual/en/function.register-tick-function.php
Upvotes: 3
Reputation: 2809
I am not that familiar with that but you can check out zend-studio and xdebug
Upvotes: 1