3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function lastWeekDay ($mnt) { $result = strtotime("01 $mnt"); return $result; } echo date('d-M-Y', lastWeekDay('Apr 2013'));
Output for 4.3.0 - 7.2.0
01-Apr-2013