3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tenMinsFromNow = (new \DateTime())->add(new \DateInterval('PT5M')); echo $tenMinsFromNow->format('d/m/Y H:i');
Output for 5.4.0 - 5.4.27, 5.6.28, 7.0.14 - 7.1.0
23/04/2014 05:20
Output for 7.0.6
03/05/2016 05:46
Output for 7.0.5
02/04/2016 18:51
Output for 7.0.4
10/03/2016 04:47
Output for 7.0.3
18/03/2016 05:08
Output for 7.0.2
21/03/2016 15:36
Output for 7.0.1
23/03/2016 16:12
Output for 7.0.0
26/03/2016 17:59
Output for 5.6.21
02/05/2016 00:49
Output for 5.6.20
09/04/2016 14:06
Output for 5.6.19
07/03/2016 04:51
Output for 5.6.18
14/03/2016 17:48
Output for 5.6.17
19/03/2016 09:32
Output for 5.6.16
27/03/2016 19:45
Output for 5.6.15
28/03/2016 20:38
Output for 5.6.14
01/04/2016 23:09
Output for 5.6.13
15/04/2016 03:10
Output for 5.6.12
19/04/2016 16:38
Output for 5.6.11
22/04/2016 23:34
Output for 5.6.10
25/04/2016 01:27
Output for 5.6.9
27/04/2016 06:27
Output for 5.6.8
29/04/2016 14:19
Output for 5.6.7
25/05/2016 04:00
Output for 5.5.35
22/05/2016 04:37
Output for 5.5.34
10/04/2016 20:04
Output for 5.5.33
08/03/2016 15:43
Output for 5.5.32
16/03/2016 21:34
Output for 5.5.31
20/03/2016 12:23
Output for 5.5.30
31/03/2016 22:39
Output for 5.5.29
16/04/2016 17:16
Output for 5.5.28
20/04/2016 19:41
Output for 5.5.27
21/04/2016 22:00
Output for 5.5.26
26/04/2016 03:51
Output for 5.5.25
28/04/2016 09:47
Output for 5.5.24
23/05/2016 16:40
Output for 5.4.45
20/09/2015 02:42
Output for 5.4.44
20/09/2015 02:39
Output for 5.4.42 - 5.4.43
20/09/2015 02:36
Output for 5.4.41
20/09/2015 02:35
Output for 5.4.39 - 5.4.40
15/05/2015 12:44
Output for 5.4.38
02/03/2015 22:40
Output for 5.4.34 - 5.4.37
09/02/2015 05:16
Output for 5.4.28 - 5.4.32
09/09/2014 08:40
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/3deRa 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/3deRa on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/3deRa 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/3deRa on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/3deRa 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/3deRa on line 2 Parse error: parse error in /in/3deRa on line 2
Process exited with code 255.