3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = array('in_monitoring' => new DateTime('now', new DateTimeZone('UTC'))); echo json_encode($var);
Output for 7.2.0
{"in_monitoring":{"date":"2015-11-16 17:12:02.004597","timezone_type":3,"timezone":"UTC"}}
Output for 7.1.10
{"in_monitoring":{"date":"2015-11-16 17:12:02.003988","timezone_type":3,"timezone":"UTC"}}
Output for 7.1.7
{"in_monitoring":{"date":"2015-11-16 17:12:02.003514","timezone_type":3,"timezone":"UTC"}}
Output for 7.1.6
{"in_monitoring":{"date":"2015-11-16 17:12:02.010312","timezone_type":3,"timezone":"UTC"}}
Output for 7.1.5
{"in_monitoring":{"date":"2015-11-16 17:12:02.008402","timezone_type":3,"timezone":"UTC"}}
Output for 7.1.0
{"in_monitoring":{"date":"2015-11-16 17:12:02.004066","timezone_type":3,"timezone":"UTC"}}
Output for 7.0.20
{"in_monitoring":{"date":"2015-11-16 17:12:02.000000","timezone_type":3,"timezone":"UTC"}}
Output for 5.5.14 - 7.0.9
{"in_monitoring":{"date":"2015-11-16 17:12:01.000000","timezone_type":3,"timezone":"UTC"}}
Output for 5.5.0 - 5.5.13
{"in_monitoring":{"date":"2015-11-16 17:12:01","timezone_type":3,"timezone":"UTC"}}