3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = "Y-m-d";$now = 1267571715; // 2010-03-02 echo date($f, strtotime("last Monday",$now))."\n"; echo date($f, strtotime("last Monday in March",$now))."\n"; echo date($f, strtotime("last Monday of March",$now))."\n"; echo date($f, strtotime("last Monday April",$now))."\n"; echo date($f, strtotime("last Monday in April",$now))."\n"; echo date($f, strtotime("last Monday of April",$now))."\n";

preferences:
64.9 ms | 405 KiB | 5 Q