<?phpecho date("Y-m-d", strtotime("2014-12-31 -1 Month"));
Standard input is empty
2014-12-01
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!