In a script that contains
date(\'Y-m-d\', strtotime(\'first day of last month\'))
in version 5.3.10 (localhost) I get, for example, \'2012
date('Y-m-d', strtotime('first day of -1 month'))
Works fine on PHP 7.0