3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = new \Datetime(); var_dump($c->format('c')); $d = \Datetime::createFromFormat(\DateTime::ATOM, '2017-07-11T12:04:03+02:00'); var_dump($d);
based on RNM6A
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
string(25) "2017-07-11T12:08:40+02:00" object(DateTime)#2 (3) { ["date"]=> string(26) "2017-07-11 12:04:03.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" }