3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = getdate(); $last2Months = getdate(strtotime("2 months ago", $today[0]));

preferences:
42.99 ms | 402 KiB | 5 Q