3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateCur = date('m.d.y'); $dateLast = strtotime("$dateCur -1 month UTC"); echo date('d.m.Y',$dateLast);

preferences:
46.68 ms | 402 KiB | 5 Q