3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('H:i:s'); echo (new DateTime('+5 min'))->format('H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
14:28:4014:33:40
Output for 7.0.6
03:22:4803:27:48
Output for 7.0.5
16:36:1716:41:17
Output for 7.0.4
02:14:5102:19:51
Output for 7.0.3
02:27:0902:32:09
Output for 7.0.2
13:00:1013:05:10
Output for 7.0.1
13:13:3813:18:38
Output for 7.0.0
15:37:1415:42:14
Output for 5.6.21
22:25:4322:30:43
Output for 5.6.20
11:49:1811:54:18
Output for 5.6.19
00:47:3500:52:35
Output for 5.6.18
12:52:3712:57:37
Output for 5.6.17
06:55:4507:00:45
Output for 5.6.16
17:22:3517:27:35
Output for 5.6.15
18:15:1218:20:12
Output for 5.6.14
20:51:0820:56:08
Output for 5.6.13
00:48:2000:53:20
Output for 5.6.12
13:52:3313:57:33
Output for 5.6.11
21:09:2921:14:29
Output for 5.6.10
22:47:3522:52:35
Output for 5.6.9
03:59:2104:04:21
Output for 5.6.8
11:42:3911:47:39
Output for 5.6.7
23:00:5623:05:56
Output for 5.5.35
01:49:5601:54:56
Output for 5.5.34
17:46:2417:51:24
Output for 5.5.33
13:06:4913:11:49
Output for 5.5.32
18:49:4618:54:46
Output for 5.5.31
09:47:4409:52:44
Output for 5.5.30
20:16:3820:21:38
Output for 5.5.29
14:49:0314:54:03
Output for 5.5.28
17:10:3017:15:30
Output for 5.5.27
19:38:1919:43:19
Output for 5.5.26
01:16:3701:21:37
Output for 5.5.25
07:17:1807:22:18
Output for 5.5.24
14:42:2814:47:28
Output for 5.4.44 - 5.4.45
19:01:0019:06:00
Output for 5.4.43
19:01:0119:06:01
Output for 5.4.41 - 5.4.42
19:01:0219:06:02
Output for 5.4.38 - 5.4.40
19:01:0319:06:03
Output for 5.4.35 - 5.4.37
19:01:0419:06:04
Output for 5.4.32 - 5.4.34
19:01:0519:06:05
Output for 5.4.27 - 5.4.31
19:01:0619:06:06
Output for 5.4.23 - 5.4.26
19:01:0719:06:07
Output for 5.4.19 - 5.4.22
19:01:0819:06:08
Output for 5.4.16 - 5.4.18
19:01:0919:06:09
Output for 5.4.12 - 5.4.15
19:01:1019:06:10
Output for 5.4.8 - 5.4.11
19:01:1119:06:11
Output for 5.4.4 - 5.4.7
19:01:1219:06:12
Output for 5.4.0 - 5.4.3
19:01:1319:06:13
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/GaVaG 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
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/GaVaG on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/GaVaG on line 2
Process exited with code 255.