3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Get yesterday's date $endDate = date('d/m/Y',(strtotime('-1 day'))); // Get one month earlier $startDate = date('1/m/Y',(strtotime('first day of previous month'))); echo $startDate;
Output for 5.3.0 - 7.1.0
1/03/2014
Output for 4.3.0 - 5.2.17
1/01/1970