For those who do not know, runkit is a magic thing that allows you to change the PHP code on the fly. In addition, he can run the PHP code in a separate environment, creating a cozy " sandbox" that does not make the "oh" main code (for this you need to build PHP with support for threads, ie --enable-maintainer-zts for configure) . ')
What's new is added:
You can relate to runtime code replacement in different ways, but the presence of a tool is better than its absence. Of the applications that immediately come to mind: the replacement of moka and stubs, dot edits in the insides of libraries.
UPD: The text was supplemented and corrected, thus the legendary, and sometimes even the red banner, dzenovich . UPD2: PHPDaemon runkit usage example . There is also a small description of the runkit features.