3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (function_exists('date_default_timezone_set')) { date_default_timezone_set("Europe/London"); } echo date('m/Y', strtotime("-5 month", strtotime("first day of this month"))); echo date('m/Y', strtotime("-5 month", strtotime("first day this month")));

preferences:
38.08 ms | 402 KiB | 5 Q