3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime(date('c')));
based on O0UhR
Output for 5.6.0 - 5.6.30, hhvm-3.17.3, 7.0.0 - 7.3.0rc3
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-03-24 14:51:35.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" }
Output for hhvm-3.15.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-03-24 14:51:36.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" }
Output for hhvm-3.12.14

Process exited with code 137.