title: Is it possible to run a PHP function after each line of a PHP script is executed?
body: <p>My question is similar to this: <a href="https://stackoverflow.com/questions/1199179/is-it-possible-to-run-code-after-each-line-in-ruby">Is it possible to run code after each line in Ruby?</a>
  However I want to do it in PHP.</p>
  
  <p>Is it possible and if so, how?</p>