3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $h = 72; $prog = new DateTime('2015-11-01 22:23'); $interval = $prog->diff(new DateTime()); $ih = $interval->d * 24 + $interval->h; var_dump($ih);
based on WZXCi
Output for 5.3.19 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
int(65)
Output for 7.0.6
int(43)
Output for 7.0.5
int(32)
Output for 7.0.4
int(212)
Output for 7.0.3
int(405)
Output for 7.0.2
int(507)
Output for 7.0.1
int(535)
Output for 7.0.0
int(608)
Output for 5.6.21
int(15)
Output for 5.6.20
int(199)
Output for 5.6.19
int(148)
Output for 5.6.18
int(325)
Output for 5.6.17
int(432)
Output for 5.6.16
int(633)
Output for 5.6.15
int(658)
Output for 5.6.14
int(12)
Output for 5.6.13
int(328)
Output for 5.6.12
int(439)
Output for 5.6.11
int(541)
Output for 5.6.10
int(567)
Output for 5.6.9
int(620)
Output for 5.6.8
int(677)
Output for 5.5.35
int(501)
Output for 5.5.34
int(225)
Output for 5.5.33
int(174)
Output for 5.5.32
int(376)
Output for 5.5.31
int(459)
Output for 5.5.30
int(732)
Output for 5.5.29
int(367)
Output for 5.5.28
int(466)
Output for 5.5.27
int(492)
Output for 5.5.26
int(594)
Output for 5.5.25
int(649)
Output for 5.5.24
int(545)