NEW Write PHP code for later inclusion

Useful for out-of-process stubs with Behat+Selenium