3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime("first Monday of ".$monthname." ".$year); while($time <= strtotime("last Monday of ".$monthname." ".$year)) { echo date('jS',$time)." ".$monthname; $time += (7*24*60*60); //Advance One Week. } ?>

preferences:
47.09 ms | 402 KiB | 5 Q