3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->format('w'); echo " - "; echo $date->format('H:i:s'); ?>
based on VcVlr
Output for 5.6.28, 7.0.20 - 7.2.0
3 - 13:34:18
Output for 7.0.6
6 - 14:04:43
Output for 7.0.5
0 - 09:59:04
Output for 7.0.4
4 - 22:07:06
Output for 7.0.3
5 - 23:42:07
Output for 7.0.2
3 - 05:49:41
Output for 7.0.1
4 - 08:51:39
Output for 7.0.0
0 - 10:44:33
Output for 5.6.21
1 - 16:54:03
Output for 5.6.20
0 - 09:01:30
Output for 5.6.19
2 - 06:17:02
Output for 5.6.18
2 - 15:16:20
Output for 5.6.17
0 - 02:48:31
Output for 5.6.16
1 - 11:34:18
Output for 5.6.15
2 - 12:24:07
Output for 5.6.14
4 - 18:06:37
Output for 5.6.13
5 - 18:45:53
Output for 5.6.12
3 - 09:16:14
Output for 5.6.11
0 - 15:42:06
Output for 5.6.10
1 - 17:47:48
Output for 5.6.9
3 - 23:16:05
Output for 5.6.8
6 - 07:42:01
Output for 5.5.35
1 - 02:59:44
Output for 5.5.34
1 - 11:16:20
Output for 5.5.33
3 - 09:22:19
Output for 5.5.32
4 - 19:15:33
Output for 5.5.31
1 - 06:02:31
Output for 5.5.30
5 - 14:15:16
Output for 5.5.29
0 - 09:03:19
Output for 5.5.28
4 - 12:35:40
Output for 5.5.27
5 - 14:12:57
Output for 5.5.26
2 - 20:29:30
Output for 5.5.25
5 - 03:56:25
Output for 5.5.24
2 - 10:28:04
Output for 5.4.45
3 - 13:34:21
Output for 5.4.44
3 - 13:34:22
Output for 5.4.41 - 5.4.43
3 - 13:34:23
Output for 5.4.40
3 - 13:34:24
Output for 5.4.38 - 5.4.39
3 - 13:34:25
Output for 5.4.36 - 5.4.37
3 - 13:34:26
Output for 5.4.34 - 5.4.35
3 - 13:34:27
Output for 5.3.29, 5.4.29 - 5.4.32
3 - 13:34:28
Output for 5.4.26 - 5.4.28
3 - 13:34:29
Output for 5.3.28, 5.4.23 - 5.4.25
3 - 13:34:30
Output for 5.4.19 - 5.4.22
3 - 13:34:31
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.18
3 - 13:34:32
Output for 5.3.23 - 5.3.25, 5.4.13 - 5.4.16
3 - 13:34:33
Output for 5.3.22, 5.4.12
3 - 13:34:34