3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $objDateTime = new DateTime(); $saleTime = new DateTime("2014-06-04 15:00:00"); $timerValue = $objDateTime->diff($saleTime)->format('%h:%i:%s'); echo $timerValue;
Output for 5.6.28, 7.0.14 - 7.1.0
1:38:40
Output for 7.0.6
17:19:18
Output for 7.0.5
6:15:59
Output for 7.0.4
16:34:16
Output for 7.0.3
17:7:30
Output for 7.0.2
22:52:45
Output for 7.0.1
3:54:57
Output for 7.0.0
5:32:16
Output for hhvm-3.12.0
21:41:3
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
12:39:18
Output for 5.6.20
5:8:34
Output for 5.6.19
0:41:21
Output for 5.6.18
8:27:21
Output for 5.6.17
21:25:48
Output for 5.6.16
7:18:13
Output for 5.6.15
8:11:8
Output for 5.6.14
10:45:13
Output for 5.6.13
14:40:40
Output for 5.6.12
4:18:30
Output for 5.6.11
11:19:10
Output for 5.6.10
13:8:40
Output for 5.6.9
18:6:7
Output for 5.6.8
2:7:17
Output for 5.6.7
20:47:4
Output for 5.5.35
16:20:55
Output for 5.5.34
7:32:34
Output for 5.5.33
3:30:35
Output for 5.5.32
10:18:35
Output for 5.5.31
0:12:32
Output for 5.5.30
10:19:27
Output for 5.5.29
4:45:40
Output for 5.5.28
7:24:14
Output for 5.5.27
9:55:5
Output for 5.5.26
15:34:22
Output for 5.5.25
21:37:59
Output for 5.5.24
4:34:6
Output for 5.4.45
10:42:45
Output for 5.4.44
10:42:43
Output for 5.4.43
10:42:40
Output for 5.4.42
10:42:39
Output for 5.4.41
10:42:37
Output for 5.4.39 - 5.4.40
10:42:35
Output for 5.4.38
5:5:0
Output for 5.4.37
5:4:53
Output for 5.4.35 - 5.4.36
5:4:52
Output for 5.4.34
5:4:51
Output for 5.4.32
22:0:10
Output for 5.4.31
22:0:8
Output for 5.4.30
22:0:1
Output for 5.4.25 - 5.4.29
1:38:37
Output for 5.4.10 - 5.4.24
1:38:36
Output for 5.3.24 - 5.3.28, 5.4.0 - 5.4.9
1:38:35
Output for 5.3.29
22:0:2
Output for 5.3.10 - 5.3.23
1:38:34
Output for 5.3.0 - 5.3.9
1:38:33
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::diff() in /in/iSU9j on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/iSU9j on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/iSU9j on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/iSU9j on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/iSU9j on line 4
Process exited with code 255.