3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start= "2013-01-31"; $current = date("Y-m-d", strtotime($start . "1st +1 month")); var_dump($current); ?>
Output for 5.1.0 - 7.1.0
string(10) "1970-01-01"
Output for 4.3.0 - 5.0.5
string(10) "2013-12-08"