3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date( 'Y m d h:i:s', strtotime( 'first day of this month' ) ); echo date( 'Y m d h:i:s', strtotime( 'first day of last month' ) ); echo date( 'Y m d h:i:s', strtotime( 'start of first day of this month' ) );

preferences:
43.11 ms | 402 KiB | 5 Q