3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$userTimezone = new \DateTimeZone('Europe/Helsinki'); $from = new \DateTime( 'now' ); $from->modify( 'first day of this month' ); //$from->sub( new \DateInterval( 'P5D' ) ); var_dump($from);

preferences:
49.08 ms | 402 KiB | 5 Q