How to print every line of a php script as it’s being executed?
For example in Python you can do
$ cat test.py
import time
print('hello')
time.sleep(3)
print('goodbye')
$ python -m trace -t test.py
--- modulename: test, funcname: <module>
test.py(1): import time
test.py(2): print('hello')
hello
test.py(3): time.sleep(3)
test.py(4): print('goodbye')
goodbye
Is there a PHP equivalent?