Catalysis of the reaction: alkylphosphonic acid = R-CH3 + phosphate. Substrates include aminomethylphosphonic acid (AMPA) (forms methylamine), dimethylphosphinic acid (forms methylphosphonic acid), glyphosate (forms sarcosine) and methylphosphonic acid (forms phosphate).