php polymorph (self modifying code)