3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \DateTime(); print_r ($a);
based on 1bDdr
Output for 7.3.0alpha1
DateTime Object ( [date] => 2016-06-29 23:16:58.002853 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.2.6
DateTime Object ( [date] => 2016-06-29 23:16:58.002132 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.2.5
DateTime Object ( [date] => 2016-06-29 23:16:58.003588 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.2.0
DateTime Object ( [date] => 2016-06-29 23:16:58.003214 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.7
DateTime Object ( [date] => 2016-06-29 23:16:58.006475 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
DateTime Object ( [date] => 2016-06-29 23:16:58.006932 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.5
DateTime Object ( [date] => 2016-06-29 23:16:58.008589 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.0
DateTime Object ( [date] => 2016-06-29 23:16:58.004070 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.14 - 5.5.36, 5.6.0 - 5.6.22, 5.6.28 - 7.0.7, 7.0.20
DateTime Object ( [date] => 2016-06-29 23:16:58.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.37, 5.6.23, 7.0.8
DateTime Object ( [date] => 1970-01-01 01:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.0 - 5.5.13
DateTime Object ( [date] => 2016-06-29 23:16:58 [timezone_type] => 3 [timezone] => Europe/Amsterdam )