3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( (new DateTime())->format('Y-m-d H:i:sP') );
Output for 5.6.28, 7.0.14 - 7.1.0
string(25) "2014-06-06 18:11:42+02:00"
Output for 7.0.6
string(25) "2016-05-03 08:58:05+02:00"
Output for 7.0.5
string(25) "2016-04-02 21:52:29+02:00"
Output for 7.0.4
string(25) "2016-03-10 08:17:44+01:00"
Output for 7.0.3
string(25) "2016-03-18 08:52:30+01:00"
Output for 7.0.2
string(25) "2016-03-22 14:38:10+01:00"
Output for 7.0.1
string(25) "2016-03-23 19:37:08+01:00"
Output for 7.0.0
string(25) "2016-03-26 21:11:22+01:00"
Output for 5.6.21
string(25) "2016-05-02 04:19:00+02:00"
Output for 5.6.20
string(25) "2016-04-09 20:47:29+02:00"
Output for 5.6.19
string(25) "2016-03-07 16:26:08+01:00"
Output for 5.6.18
string(25) "2016-03-15 00:13:12+01:00"
Output for 5.6.17
string(25) "2016-03-19 13:10:18+01:00"
Output for 5.6.16
string(25) "2016-03-27 22:56:49+02:00"
Output for 5.6.15
string(25) "2016-03-28 23:49:50+02:00"
Output for 5.6.14
string(25) "2016-04-02 02:25:07+02:00"
Output for 5.6.13
string(25) "2016-04-15 06:19:01+02:00"
Output for 5.6.12
string(25) "2016-04-19 19:59:04+02:00"
Output for 5.6.11
string(25) "2016-04-23 03:05:30+02:00"
Output for 5.6.10
string(25) "2016-04-25 04:48:43+02:00"
Output for 5.6.9
string(25) "2016-04-27 09:46:18+02:00"
Output for 5.6.8
string(25) "2016-04-29 17:50:17+02:00"
Output for 5.5.35
string(25) "2016-05-22 08:03:31+02:00"
Output for 5.5.34
string(25) "2016-04-10 23:09:33+02:00"
Output for 5.5.33
string(25) "2016-03-08 19:22:50+01:00"
Output for 5.5.32
string(25) "2016-03-17 02:03:27+01:00"
Output for 5.5.31
string(25) "2016-03-20 15:55:58+01:00"
Output for 5.5.30
string(25) "2016-04-01 01:57:31+02:00"
Output for 5.5.29
string(25) "2016-04-16 20:24:09+02:00"
Output for 5.5.28
string(25) "2016-04-20 23:05:35+02:00"
Output for 5.5.27
string(25) "2016-04-22 01:35:50+02:00"
Output for 5.5.26
string(25) "2016-04-26 07:15:42+02:00"
Output for 5.5.25
string(25) "2016-04-28 13:20:15+02:00"
Output for 5.5.24
string(25) "2016-05-23 20:34:33+02:00"
Output for 5.4.45
string(25) "2015-11-17 14:48:02+01:00"
Output for 5.4.44
string(25) "2015-11-17 14:48:03+01:00"
Output for 5.4.41 - 5.4.43
string(25) "2015-11-17 14:48:04+01:00"
Output for 5.4.38 - 5.4.40
string(25) "2015-11-17 14:48:05+01:00"
Output for 5.4.35 - 5.4.37
string(25) "2015-11-17 14:48:06+01:00"
Output for 5.4.34
string(25) "2015-11-17 14:48:07+01:00"
Output for 5.4.29 - 5.4.32
string(25) "2015-11-17 14:48:08+01:00"
Output for 5.4.25 - 5.4.28
string(25) "2015-11-17 14:48:09+01:00"
Output for 5.4.23 - 5.4.24
string(25) "2015-11-17 14:48:10+01:00"
Output for 5.4.19 - 5.4.22
string(25) "2015-11-17 14:48:11+01:00"
Output for 5.4.17 - 5.4.18
string(25) "2015-11-17 14:48:12+01:00"
Output for 5.4.12 - 5.4.16
string(25) "2015-11-17 14:48:13+01:00"
Output for 5.4.9 - 5.4.11
string(25) "2015-11-17 14:48:14+01:00"
Output for 5.4.5 - 5.4.8
string(25) "2015-11-17 14:48:15+01:00"
Output for 5.4.1 - 5.4.4
string(25) "2015-11-17 14:48:16+01:00"
Output for 5.4.0
string(25) "2015-11-17 14:48:17+01:00"
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/GkL27 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/GkL27 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/GkL27 on line 3
Process exited with code 255.