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; $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06"))); echo $LastFridayOfMonth; ?>
Output for 5.0.0 - 5.0.5, 5.2.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-05-312013-05-31
Output for 5.2.0 - 5.2.6
2013-05-312013-06-21
Output for 5.1.0 - 5.1.6
2013-05-312013-05-24
Output for 4.3.0 - 4.4.9
2013-05-311969-12-26