My question is similar to this: Is it possible to run code after each line in Ruby?
However I want to do it in PHP.
Is it possible and if so, how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can register a tick handler:
As you can see, it’s not exactly as "each line of code" unless you only write one tickable statement each line. But it’s the closest you can get.
Example:
will output (demo):