3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = date( 'Y-m-d', strtotime( 'monday this week' ) ); $friday = date( 'Y-m-d', strtotime( 'friday this week' ) ); echo $monday;

preferences:
54.92 ms | 402 KiB | 5 Q