on the fly usable code snippets in php