3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $asdf = new DateTime; //echo json_encode($asdf); echo $asdf->format('Y-m-d H:i:s');
based on h5YlR
Output for 5.6.28, 7.0.20 - 7.3.0beta1
2016-03-30 04:36:07
Output for 7.0.6
2016-05-21 18:44:17
Output for 7.0.5
2016-04-14 16:01:49
Output for 5.5.33, 5.6.18 - 5.6.19, 7.0.4
2016-03-30 04:36:08
Output for 5.5.31 - 5.5.32, 5.6.15 - 5.6.17, 7.0.0 - 7.0.3
2016-03-30 04:36:09
Output for 5.6.21
2016-05-02 20:59:17
Output for 5.6.20
2016-04-10 12:58:57
Output for 5.5.29 - 5.5.30, 5.6.13 - 5.6.14
2016-03-30 04:36:10
Output for 5.5.25 - 5.5.28, 5.6.9 - 5.6.12
2016-03-30 04:36:11
Output for 5.5.19 - 5.5.24, 5.6.4 - 5.6.8
2016-03-30 04:36:12
Output for 5.5.10 - 5.5.18, 5.6.0 - 5.6.3
2016-03-30 04:36:13
Output for 5.5.35
2016-05-23 09:44:06
Output for 5.5.34
2016-04-11 15:15:43
Output for 5.5.0 - 5.5.9
2016-03-30 04:36:14