3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "Wednesday, 01/27/2016"; $calDate = explode(', ',$date); echo (int)(abs( strtotime($calDate[1]) - strtotime('now') )/ ( 60 * 60 * 24 ) );
based on LW3lV
Output for 5.3.21 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
27
Output for 7.0.6
115
Output for 7.0.5
67
Output for 7.0.4
43
Output for 7.0.3
51
Output for 7.0.2
56
Output for 7.0.1
57
Output for 7.0.0
60
Output for 5.6.21
96
Output for 5.6.20
74
Output for 5.6.19
41
Output for 5.6.18
48
Output for 5.6.17
53
Output for 5.6.16
61
Output for 5.6.15
62
Output for 5.6.14
78
Output for 5.6.13
79
Output for 5.6.12
84
Output for 5.6.11
88
Output for 5.6.10
89
Output for 5.6.9
91
Output for 5.6.8
94
Output for 5.5.35
117
Output for 5.5.34
75
Output for 5.5.33
42
Output for 5.5.32
50
Output for 5.5.31
54
Output for 5.5.30
65
Output for 5.5.29
81
Output for 5.5.28
85
Output for 5.5.27
86
Output for 5.5.26
90
Output for 5.5.25
93
Output for 5.5.24
118