3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dates = array(); $timestamp = strtotime('-30 days'); for ($i = 0 ; $i <=30 ; $i++) { $dates[$i]= date('M j', $timestamp); $timestamp += 24 * 3600; }
Output for 4.3.0 - 7.1.0