3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:sZ'); ?>
based on mmVF0
Output for 5.6.28, 7.0.20 - 7.2.0
2015-09-11 18:59:177200
Output for 7.0.6
2016-05-03 09:18:537200
Output for 7.0.5
2016-04-02 22:12:057200
Output for 7.0.4
2016-03-10 08:40:323600
Output for 7.0.3
2016-03-18 09:16:583600
Output for 7.0.2
2016-03-22 15:10:483600
Output for 7.0.1
2016-03-23 19:58:323600
Output for 7.0.0
2016-03-26 21:32:133600
Output for 5.6.21
2016-05-02 04:39:437200
Output for 5.6.20
2016-04-09 21:08:057200
Output for 5.6.19
2016-03-07 16:49:053600
Output for 5.6.18
2016-03-15 00:41:513600
Output for 5.6.17
2016-03-19 13:33:223600
Output for 5.6.16
2016-03-27 23:17:397200
Output for 5.6.15
2016-03-29 00:11:027200
Output for 5.6.14
2016-04-02 02:44:277200
Output for 5.6.13
2016-04-15 06:38:477200
Output for 5.6.12
2016-04-19 20:21:147200
Output for 5.6.11
2016-04-23 03:26:307200
Output for 5.6.10
2016-04-25 05:09:467200
Output for 5.6.9
2016-04-27 10:07:487200
Output for 5.6.8
2016-04-29 18:12:017200
Output for 5.5.35
2016-05-22 08:24:287200
Output for 5.5.34
2016-04-10 23:28:587200
Output for 5.5.33
2016-03-08 19:45:183600
Output for 5.5.32
2016-03-17 02:26:103600
Output for 5.5.31
2016-03-20 16:19:173600
Output for 5.5.30
2016-04-01 02:18:297200
Output for 5.5.29
2016-04-16 20:43:477200
Output for 5.5.28
2016-04-20 23:27:077200
Output for 5.5.27
2016-04-22 01:56:287200
Output for 5.5.26
2016-04-26 07:36:487200
Output for 5.5.25
2016-04-28 13:42:277200
Output for 5.5.24
2016-05-23 20:56:267200
Output for 5.4.34 - 5.4.45
2015-09-11 18:59:227200
Output for 5.4.21 - 5.4.32
2015-09-11 18:59:237200
Output for 5.4.9 - 5.4.20
2015-09-11 18:59:247200
Output for 5.4.7 - 5.4.8
2015-09-11 18:59:257200
Output for 5.4.6
2015-10-27 03:22:143600
Output for 5.4.5
2015-10-27 04:52:453600
Output for 5.4.4
2015-10-27 06:28:363600
Output for 5.4.3
2015-10-27 08:10:093600
Output for 5.4.2
2015-10-27 09:55:353600
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/8ul6p on line 2
Process exited with code 255.