3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = strtotime("first day of this month -1 year"); echo $data; echo strtotime($data . " -1 year");

preferences:
48.04 ms | 402 KiB | 5 Q