3v4l.org

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

preferences:
55.55 ms | 402 KiB | 5 Q