3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $change = 1453404531; $then = new DateTime("@$change"); $now = new DateTime("now"); $interval = date_diff($then, $now); echo $interval->days;
based on LQi7E
Output for 5.3.22 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
0
Output for 7.0.6
120
Output for 7.0.5
72
Output for 7.0.4
49
Output for 7.0.3
57
Output for 7.0.2
61
Output for 7.0.1
62
Output for 7.0.0
65
Output for 5.6.21
101
Output for 5.6.20
79
Output for 5.6.19
46
Output for 5.6.18
53
Output for 5.6.17
58
Output for 5.6.16
66
Output for 5.6.15
67
Output for 5.6.14
83
Output for 5.6.13
84
Output for 5.6.12
89
Output for 5.6.11
93
Output for 5.6.10
94
Output for 5.6.9
97
Output for 5.6.8
99
Output for 5.5.35
122
Output for 5.5.34
80
Output for 5.5.33
47
Output for 5.5.32
55
Output for 5.5.31
59
Output for 5.5.30
70
Output for 5.5.29
86
Output for 5.5.28
90
Output for 5.5.27
91
Output for 5.5.26
95
Output for 5.5.25
98
Output for 5.5.24
123