3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date='2013-8-31'; var_dump($date); var_dump(date('Y-m',strtotime("$date -1 month"))); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(9) "2013-8-31" string(7) "2013-07"