3v4l.org

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

preferences:
43.57 ms | 402 KiB | 5 Q