It makes pre hook functions for you
It's a simple HTML file with a JS script that uses a regex
Online version : http://testserverphp.altervista.org/functionmaker.html