3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(date('r')); print_r($dt);
based on 7F0av
Output for 5.6.28, 7.0.20 - 7.2.0
DateTime Object ( [date] => 2015-11-27 10:45:40.000000 [timezone_type] => 1 [timezone] => +01:00 )
Output for 5.5.14 - 5.6.23, 7.0.0 - 7.0.8
DateTime Object ( [date] => 2015-11-27 10:44:42.000000 [timezone_type] => 1 [timezone] => +01:00 )
Output for 5.5.0 - 5.5.13
DateTime Object ( [date] => 2015-11-27 10:44:42 [timezone_type] => 1 [timezone] => +01:00 )