3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("d-m-Y H:i:s", strtotime('31st March')).PHP_EOL; echo date("d-m-Y H:i:s", strtotime('+1 month', strtotime('31st March')));
based on sTuEU
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0beta1
31-03-2017 00:00:00 01-05-2017 00:00:00