3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = new DateTime(); $end = new DateTime('2014-09-21 00:00:00'); $diff = $start->diff($end); var_dump($diff); var_dump($diff->format('%d'));
based on P7VlR
Output for 7.1.0
object(DateInterval)#3 (16) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(41) ["f"]=> float(-0.003983) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(1) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.6.28, 7.0.14
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(41) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(1) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 7.0.6
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(12) ["h"]=> int(17) ["i"]=> int(8) ["s"]=> int(4) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(590) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "12"
Output for 7.0.5
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(12) ["h"]=> int(5) ["i"]=> int(37) ["s"]=> int(2) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(560) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "12"
Output for 7.0.4
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(19) ["h"]=> int(17) ["i"]=> int(17) ["s"]=> int(40) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(536) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "19"
Output for 7.0.3
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(27) ["h"]=> int(18) ["i"]=> int(2) ["s"]=> int(54) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(544) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "27"
Output for 7.0.2
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(2) ["h"]=> int(0) ["i"]=> int(16) ["s"]=> int(14) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(549) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "2"
Output for 7.0.1
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(3) ["h"]=> int(4) ["i"]=> int(17) ["s"]=> int(0) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(550) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "3"
Output for 7.0.0
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(6) ["h"]=> int(6) ["i"]=> int(13) ["s"]=> int(42) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(553) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "6"
Output for hhvm-3.12.0
object(DateInterval)#3 (0) { } string(2) "22"
Output for hhvm-3.10.0
object(DateInterval)#3 (0) { } string(1) "9"
Output for 5.6.21
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(11) ["h"]=> int(12) ["i"]=> int(18) ["s"]=> int(8) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(589) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "11"
Output for 5.6.20
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(19) ["h"]=> int(4) ["i"]=> int(35) ["s"]=> int(29) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(567) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "19"
Output for 5.6.19
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(17) ["h"]=> int(1) ["i"]=> int(24) ["s"]=> int(55) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(534) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "17"
Output for 5.6.18
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(24) ["h"]=> int(9) ["i"]=> int(56) ["s"]=> int(32) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(541) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "24"
Output for 5.6.17
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(28) ["h"]=> int(21) ["i"]=> int(49) ["s"]=> int(45) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(545) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "28"
Output for 5.6.16
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(7) ["h"]=> int(7) ["i"]=> int(1) ["s"]=> int(12) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(554) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "7"
Output for 5.6.15
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(8) ["h"]=> int(7) ["i"]=> int(52) ["s"]=> int(10) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(555) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "8"
Output for 5.6.14
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(11) ["h"]=> int(9) ["i"]=> int(47) ["s"]=> int(31) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(559) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "11"
Output for 5.6.13
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(24) ["h"]=> int(14) ["i"]=> int(6) ["s"]=> int(34) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(572) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "24"
Output for 5.6.12
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(29) ["h"]=> int(4) ["i"]=> int(33) ["s"]=> int(20) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(577) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "29"
Output for 5.6.11
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(2) ["h"]=> int(11) ["i"]=> int(2) ["s"]=> int(56) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(580) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "2"
Output for 5.6.10
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(4) ["h"]=> int(12) ["i"]=> int(59) ["s"]=> int(8) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(582) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "4"
Output for 5.6.9
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(6) ["h"]=> int(18) ["i"]=> int(8) ["s"]=> int(42) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(584) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "6"
Output for 5.6.8
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(9) ["h"]=> int(3) ["i"]=> int(1) ["s"]=> int(1) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(587) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "9"
Output for 5.5.35
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(8) ["d"]=> int(1) ["h"]=> int(18) ["i"]=> int(4) ["s"]=> int(19) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(609) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.5.34
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(20) ["h"]=> int(6) ["i"]=> int(49) ["s"]=> int(8) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(568) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "20"
Output for 5.5.33
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(18) ["h"]=> int(4) ["i"]=> int(4) ["s"]=> int(25) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(535) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "18"
Output for 5.5.32
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(5) ["d"]=> int(26) ["h"]=> int(13) ["i"]=> int(39) ["s"]=> int(24) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(543) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "26"
Output for 5.5.31
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(0) ["h"]=> int(0) ["i"]=> int(43) ["s"]=> int(1) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(547) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.5.30
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(10) ["h"]=> int(9) ["i"]=> int(45) ["s"]=> int(25) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(558) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "10"
Output for 5.5.29
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(6) ["d"]=> int(26) ["h"]=> int(4) ["i"]=> int(31) ["s"]=> int(14) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(574) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "26"
Output for 5.5.28
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(0) ["h"]=> int(7) ["i"]=> int(44) ["s"]=> int(39) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(578) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.5.27
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(1) ["h"]=> int(9) ["i"]=> int(37) ["s"]=> int(58) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(579) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.5.26
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(5) ["h"]=> int(15) ["i"]=> int(40) ["s"]=> int(44) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(583) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "5"
Output for 5.5.25
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(7) ["d"]=> int(7) ["h"]=> int(22) ["i"]=> int(31) ["s"]=> int(48) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(585) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "7"
Output for 5.5.24
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(8) ["d"]=> int(3) ["h"]=> int(5) ["i"]=> int(12) ["s"]=> int(52) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(611) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "3"
Output for 5.4.45
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(57) ["s"]=> int(11) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.44
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(57) ["s"]=> int(4) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.43
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(56) ["s"]=> int(56) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.42
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(56) ["s"]=> int(52) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.41
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(56) ["s"]=> int(49) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.40
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(56) ["s"]=> int(45) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.39
object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(0) ["d"]=> int(0) ["h"]=> int(13) ["i"]=> int(56) ["s"]=> int(42) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(365) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "0"
Output for 5.4.38
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(5) ["d"]=> int(23) ["h"]=> int(22) ["i"]=> int(11) ["s"]=> int(5) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(174) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "23"
Output for 5.4.36 - 5.4.37
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(5) ["d"]=> int(23) ["h"]=> int(22) ["i"]=> int(10) ["s"]=> int(57) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(174) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "23"
Output for 5.4.34 - 5.4.35
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(5) ["d"]=> int(23) ["h"]=> int(22) ["i"]=> int(10) ["s"]=> int(56) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(174) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(2) "23"
Output for 5.4.30 - 5.4.32
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(38) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(1) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.4.17 - 5.4.29
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(37) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(1) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.4.9 - 5.4.16
object(DateInterval)#3 (8) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(37) ["invert"]=> int(0) ["days"]=> int(1) } string(1) "1"
Output for 5.3.19 - 5.3.26, 5.4.0 - 5.4.8
object(DateInterval)#3 (8) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(36) ["invert"]=> int(0) ["days"]=> int(1) } string(1) "1"
Output for 5.3.27 - 5.3.29
object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(36) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(1) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) } string(1) "1"
Output for 5.3.0 - 5.3.18
object(DateInterval)#3 (8) { ["y"]=> int(0) ["m"]=> int(0) ["d"]=> int(1) ["h"]=> int(12) ["i"]=> int(8) ["s"]=> int(35) ["invert"]=> int(0) ["days"]=> int(1) } string(1) "1"
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::diff() in /in/Llcai on line 6
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/Llcai on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/Llcai on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/Llcai on line 3