3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $m= date("m"); $de= date("d"); $y= date("Y"); $svnumber=array(); for($i=0; $i<=6; $i++){ $date=date('Y-m',mktime(0,0,0,($m-$i),$y)); }
Output for 4.3.0 - 7.1.0