3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print (new DateTime('first day of next month'))->format('Y-m-d\TH:i:s.u');
based on pulkT
Output for 7.2.0
2017-06-01T20:44:38.004346
Output for 7.1.7
2017-06-01T20:44:38.002769
Output for 7.1.6
2017-06-01T20:44:38.005244
Output for 7.1.5
2017-06-01T20:44:38.005394
Output for 7.1.4
2017-06-01T20:44:38.005564
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.15.4, 7.0.0 - 7.0.20, 7.1.3
2017-06-01T20:44:38.000000
Output for 7.1.2
2017-06-01T20:44:38.006185
Output for 7.1.1
2017-06-01T20:44:38.003023
Output for 7.1.0
2017-06-01T20:44:38.002877
Output for hhvm-3.17.3
2017-06-01T20:44:39.000000