3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tenMinsFromNow = (new \DateTime())->add(new \DateInterval('PT10S')); echo $tenMinsFromNow->format('d/m/Y H:i:s');
Output for 7.0.14 - 7.1.0
21/07/2014 03:43:34
Output for 7.0.6
03/05/2016 05:37:35
Output for 7.0.5
02/04/2016 18:43:36
Output for 7.0.4
10/03/2016 04:38:46
Output for 7.0.3
18/03/2016 04:59:54
Output for 7.0.2
21/03/2016 15:27:48
Output for 7.0.1
23/03/2016 16:03:42
Output for 7.0.0
26/03/2016 17:51:11
Output for hhvm-3.12.0
11/03/2016 11:58:19
Output for hhvm-3.10.0
30/03/2016 02:09:16
Output for 5.6.21
02/05/2016 00:41:32
Output for 5.6.20
09/04/2016 13:58:23
Output for 5.6.19
07/03/2016 04:21:09
Output for 5.6.18
14/03/2016 17:40:17
Output for 5.6.17
19/03/2016 09:23:58
Output for 5.6.16
27/03/2016 19:37:25
Output for 5.6.15
28/03/2016 20:30:21
Output for 5.6.14
01/04/2016 23:01:18
Output for 5.6.13
15/04/2016 03:02:27
Output for 5.6.12
19/04/2016 16:30:35
Output for 5.6.11
22/04/2016 23:26:51
Output for 5.6.10
25/04/2016 01:18:41
Output for 5.6.9
27/04/2016 06:19:21
Output for 5.6.8
29/04/2016 14:10:50
Output for 5.6.7
25/05/2016 03:45:26
Output for 5.5.35
22/05/2016 04:29:31
Output for 5.5.34
10/04/2016 19:56:31
Output for 5.5.33
08/03/2016 15:34:45
Output for 5.5.32
16/03/2016 21:25:22
Output for 5.5.31
20/03/2016 12:14:47
Output for 5.5.30
31/03/2016 22:31:43
Output for 5.5.29
16/04/2016 17:08:09
Output for 5.5.28
20/04/2016 19:33:11
Output for 5.5.27
21/04/2016 21:52:17
Output for 5.5.26
26/04/2016 03:42:34
Output for 5.5.25
28/04/2016 09:39:02
Output for 5.5.24
23/05/2016 16:32:16
Output for 5.4.45
21/09/2015 04:07:10
Output for 5.4.44
21/09/2015 04:05:44
Output for 5.4.43
21/09/2015 04:04:10
Output for 5.4.42
21/09/2015 04:03:40
Output for 5.4.41
21/09/2015 04:02:56
Output for 5.4.40
21/09/2015 04:02:07
Output for 5.4.39
21/09/2015 04:01:28
Output for 5.4.38
05/03/2015 05:38:56
Output for 5.4.35 - 5.4.37
05/03/2015 05:38:48
Output for 5.4.34
05/03/2015 05:38:47
Output for 5.4.32
14/09/2014 00:19:23
Output for 5.4.31
14/09/2014 00:19:22
Output for 5.4.16 - 5.4.30
21/07/2014 03:43:39
Output for 5.4.0 - 5.4.15
21/07/2014 03:43:40
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/UpR4f on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UpR4f on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/UpR4f on line 2
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
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UpR4f on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/UpR4f on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/UpR4f on line 2 Parse error: parse error in /in/UpR4f on line 2
Process exited with code 255.