3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $deliveryDate = new DateTime('2015-12-23'); echo $deliveryDate->diff(new DateTime("now"))->format("%a");
based on VZ8RV
Output for 5.3.21 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
0
Output for 7.0.6
150
Output for 7.0.5
102
Output for 7.0.4
78
Output for 7.0.3
86
Output for 7.0.2
91
Output for 7.0.1
92
Output for 7.0.0
95
Output for 5.6.21
131
Output for 5.6.20
109
Output for 5.6.19
76
Output for 5.6.18
83
Output for 5.6.17
88
Output for 5.6.16
96
Output for 5.6.15
97
Output for 5.6.14
113
Output for 5.6.13
114
Output for 5.6.12
119
Output for 5.6.11
123
Output for 5.6.10
124
Output for 5.6.9
126
Output for 5.6.8
129
Output for 5.5.35
152
Output for 5.5.34
110
Output for 5.5.33
77
Output for 5.5.32
85
Output for 5.5.31
89
Output for 5.5.30
100
Output for 5.5.29
116
Output for 5.5.28
120
Output for 5.5.27
121
Output for 5.5.26
125
Output for 5.5.25
128
Output for 5.5.24
153