3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $utcTimezone = new \DateTimeZone('UTC'); $start_date = new \DateTime('NOW', $utcTimezone); $start_date->modify('+1 months'); echo $start_date->format('m'); // 2017-01-01
based on 3lejg
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
03