There is a relatively inexpensive App in the AppStore called DraftCode.

http://freeridecoding.com/draftcode

It includes standard php and supports a lot of extensions like mysql etc.
It even...