3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strmnth = "01-".date("Y"); $endmnth2 = date("m"); $stmnt = 1; $endmnth = "".date("m-Y"); echo $strmnth; echo "<br>".$endmnth2; echo "<br>".$stmnt; echo "<br>".$endmnth; if($stmnt<10) $stmnt="0".$stmnt; if($stmnt == "01") $stmnt3 = "Jan"; else if($stmnt == "02") $stmnt3 = "Feb"; else if($stmnt == "03") $stmnt3 = "Mar"; else if($stmnt == "04") $stmnt3 = "Apr"; else if($stmnt == "05") $stmnt3 = "May"; else if($stmnt == "06") $stmnt3 = "Jun"; else if($stmnt == "07") $stmnt3 = "Jul"; else if($stmnt == "08") $stmnt3 = "Aug"; else if($stmnt == "09") $stmnt3 = "Sep"; else if($stmnt == "10") $stmnt3 = "Oct"; else if($stmnt == "11") $stmnt3 = "Nov"; else if($stmnt == "12") $stmnt3 = "Dec"; $_GET['year']="2013"; $stmnt2 = "".$stmnt."-".$_GET['year']; $stmnt4 = "".$stmnt3."-".$_GET['year']; echo "<br>".$stmnt2; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
01-2013<br>12<br>1<br>12-2013<br>01-2013