3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('c', (new DateTime('now'))->getTimestamp()); echo (new DateTime('now'))->format('c');
based on 27sFL
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.6, 7.0.8 - 7.3.0rc3
2017-07-05T16:05:14+02:002017-07-05T16:05:14+02:00
Output for 7.0.7
2017-07-05T16:05:15+02:002017-07-05T16:05:15+02:00