3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(new DateTime('now GMT'));
Output for 7.2.11
{"date":"2015-10-08 12:28:14.002306","timezone_type":2,"timezone":"GMT"}
Output for 7.2.6
{"date":"2015-10-08 12:28:14.003562","timezone_type":2,"timezone":"GMT"}
Output for 7.2.0
{"date":"2015-10-08 12:28:14.003599","timezone_type":2,"timezone":"GMT"}
Output for 7.1.20
{"date":"2015-10-08 12:28:14.002704","timezone_type":2,"timezone":"GMT"}
Output for 7.1.10
{"date":"2015-10-08 12:28:14.002851","timezone_type":2,"timezone":"GMT"}
Output for 7.1.7
{"date":"2015-10-08 12:28:14.002408","timezone_type":2,"timezone":"GMT"}
Output for 7.1.6
{"date":"2015-10-08 12:28:14.011684","timezone_type":2,"timezone":"GMT"}
Output for 7.1.5
{"date":"2015-10-08 12:28:14.010120","timezone_type":2,"timezone":"GMT"}
Output for 7.1.0
{"date":"2015-10-08 12:28:14.003967","timezone_type":2,"timezone":"GMT"}
Output for 5.4.30 - 5.4.45, 5.5.14 - 7.0.20
{"date":"2015-10-08 12:28:14.000000","timezone_type":2,"timezone":"GMT"}
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
{"date":"2015-10-08 12:28:14","timezone_type":2,"timezone":"GMT"}