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
01:38:31
Output for 7.0.6
15:57:11
Output for 7.0.5
04:57:21
Output for 7.0.4
15:5:52
Output for 7.0.3
15:32:37
Output for 7.0.2
21:5:33
Output for 7.0.1
02:28:6
Output for 7.0.0
04:10:16
Output for hhvm-3.12.0
00:13:58
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
11:14:10
Output for 5.6.20
00:15:36
Output for 5.6.19
16:37:0
Output for 5.6.18
05:10:52
Output for 5.6.17
19:53:5
Output for 5.6.16
05:55:16
Output for 5.6.15
06:47:34
Output for 5.6.14
09:16:12
Output for 5.6.13
13:20:14
Output for 5.6.12
02:51:55
Output for 5.6.11
09:50:7
Output for 5.6.10
11:41:19
Output for 5.6.9
16:40:4
Output for 5.6.8
00:33:41
Output for 5.6.7
16:34:23
Output for 5.5.35
14:51:48
Output for 5.5.34
06:11:48
Output for 5.5.33
01:59:24
Output for 5.5.32
08:2:20
Output for 5.5.31
22:41:50
Output for 5.5.30
08:47:19
Output for 5.5.29
03:25:27
Output for 5.5.28
05:55:55
Output for 5.5.27
08:22:50
Output for 5.5.26
14:7:37
Output for 5.5.25
20:10:12
Output for 5.5.24
03:4:7
Output for 5.4.45
10:40:43
Output for 5.4.44
10:40:39
Output for 5.4.43
10:40:36
Output for 5.4.42
10:40:35
Output for 5.4.41
10:40:33
Output for 5.4.39 - 5.4.40
10:40:30
Output for 5.4.38
05:2:22
Output for 5.4.35 - 5.4.37
05:2:15
Output for 5.4.34
05:2:14
Output for 5.4.32
21:55:56
Output for 5.4.31
21:55:55
Output for 5.4.30
21:55:49
Output for 5.4.16 - 5.4.29
01:38:28
Output for 5.4.1 - 5.4.15
01:38:27
Output for 5.3.14 - 5.3.28, 5.4.0
01:38:26
Output for 5.3.29
21:55:50
Output for 5.3.0 - 5.3.13
01:38:25
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::diff() in /in/jBQ9u on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/jBQ9u 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/jBQ9u 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/jBQ9u on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/jBQ9u on line 4
Process exited with code 255.