3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateLastMonth = date("first day of last month"); $dateCurrentMonth = date("last day of last month"); var_dump($dateLastMonth, $dateCurrentMonth);
Output for 5.6.30
string(77) "f48Tue, 11 Jul 2017 11:48:24 +02002431 11am17 2017f Tuesdayam2431 07201773111" string(52) "Tuesdayam2431 11am17 2017f Tuesdayam2431 07201773111"