3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d+1 H:i:s');
based on EABlV
Output for 5.6.28, 7.0.20 - 7.2.0
2016-01-14+1 14:47:53
Output for 7.0.6
2016-05-21+1 13:48:44
Output for 7.0.5
2016-04-03+1 09:46:25
Output for 7.0.4
2016-03-10+1 21:53:43
Output for 7.0.3
2016-03-18+1 23:21:06
Output for 7.0.2
2016-03-23+1 05:35:10
Output for 7.0.1
2016-03-24+1 08:38:30
Output for 7.0.0
2016-03-27+1 10:31:28
Output for 5.6.21
2016-05-02+1 16:40:34
Output for 5.6.20
2016-04-10+1 08:48:44
Output for 5.6.19
2016-03-08+1 06:03:20
Output for 5.6.18
2016-03-15+1 15:01:28
Output for 5.6.17
2016-03-20+1 02:34:00
Output for 5.6.16
2016-03-28+1 11:21:16
Output for 5.6.15
2016-03-29+1 12:10:52
Output for 5.6.14
2016-04-14+1 17:53:17
Output for 5.6.13
2016-04-15+1 18:32:25
Output for 5.6.12
2016-04-20+1 09:02:03
Output for 5.6.11
2016-04-24+1 15:28:20
Output for 5.6.10
2016-04-25+1 17:33:55
Output for 5.6.9
2016-04-27+1 23:00:30
Output for 5.6.8
2016-04-30+1 07:28:58
Output for 5.5.35
2016-05-23+1 02:44:18
Output for 5.5.34
2016-04-11+1 11:02:48
Output for 5.5.33
2016-03-09+1 09:02:21
Output for 5.5.32
2016-03-17+1 18:59:18
Output for 5.5.31
2016-03-21+1 05:45:40
Output for 5.5.30
2016-04-01+1 14:02:08
Output for 5.5.29
2016-04-17+1 08:49:58
Output for 5.5.28
2016-04-21+1 12:21:51
Output for 5.5.27
2016-04-22+1 13:59:20
Output for 5.5.26
2016-04-26+1 20:15:37
Output for 5.5.25
2016-04-29+1 03:41:39
Output for 5.5.24
2016-05-24+1 10:13:00
Output for 5.4.45
2016-01-14+1 14:47:56
Output for 5.4.43 - 5.4.44
2016-01-14+1 14:47:57
Output for 5.4.41 - 5.4.42
2016-01-14+1 14:47:58
Output for 5.4.40
2016-01-14+1 14:47:59
Output for 5.4.38 - 5.4.39
2016-01-14+1 14:48:00
Output for 5.4.35 - 5.4.37
2016-01-14+1 14:48:01
Output for 5.4.34
2016-01-14+1 14:48:02
Output for 5.4.30 - 5.4.32
2016-01-14+1 14:48:03
Output for 5.4.26 - 5.4.29
2016-01-14+1 14:48:04
Output for 5.4.23 - 5.4.25
2016-01-14+1 14:48:05
Output for 5.4.22
2016-01-14+1 14:48:06
Output for 5.4.20 - 5.4.21
2016-01-14+1 14:48:07
Output for 5.4.18 - 5.4.19
2016-01-14+1 14:48:08
Output for 5.4.15 - 5.4.17
2016-01-14+1 14:48:09
Output for 5.4.13 - 5.4.14
2016-01-14+1 14:48:10
Output for 5.4.11 - 5.4.12
2016-01-14+1 14:48:11
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/fJfVV on line 2
Process exited with code 255.