3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new \DateTime(); var_dump($now->format(\DateTime::RFC3339)); var_dump(time());
based on 9WQFE
Output for 7.1.20, 7.2.6 - 7.3.0rc3
string(25) "2017-12-06T17:01:23+01:00" int(1512576083)
Output for 5.6.0 - 5.6.30, hhvm-3.18.5, hhvm-3.22.0, 7.0.0 - 7.0.15, 7.0.17 - 7.1.12, 7.2.0
string(25) "2017-12-06T17:01:15+01:00" int(1512576075)
Output for hhvm-3.21.3, 7.0.16
string(25) "2017-12-06T17:01:16+01:00" int(1512576076)