3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06-01"))); echo $LastFridayOfMonth; echo "<br />"; $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06-10"))); echo $LastFridayOfMonth; ?>
Output for 4.3.0 - 7.1.0
2013-05-31<br />2013-06-07