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; ?>
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