3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', strtotime('last Monday', strtotime('2014-10-06 00:00:00'))); echo "\r\n"; echo date('Y-m-d', strtotime('last Monday', strtotime('2014-09-30 00:00:00')));

preferences:
60.08 ms | 402 KiB | 5 Q