3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "blah 2015 yar"; $pos = strpos($string, "20"); $year = substr($string, $pos, 4); $end_year = "12/31/" . $year; echo $end_year; $end_time = new DateTime($end_year); var_dump($end_time); $start_time = new DateTime(); $diff = $end_time->diff($start_time); var_dump($diff); ?>
based on 83n3n
Output for 7.1.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (16) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(58) ["f"]=> float(-0.004209) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.28, 7.0.14
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(58) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.6
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(4) ["d"]=> int(2) ["h"]=> int(10) ["i"]=> int(16) ["s"]=> int(13) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(124) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.5
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(2) ["h"]=> int(23) ["i"]=> int(3) ["s"]=> int(33) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(93) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.4
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(8) ["h"]=> int(9) ["i"]=> int(39) ["s"]=> int(1) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(70) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.3
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(16) ["h"]=> int(10) ["i"]=> int(18) ["s"]=> int(34) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(78) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.2
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(20) ["h"]=> int(16) ["i"]=> int(17) ["s"]=> int(3) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(82) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.1
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(21) ["h"]=> int(20) ["i"]=> int(53) ["s"]=> int(17) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(83) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 7.0.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(24) ["h"]=> int(22) ["i"]=> int(25) ["s"]=> int(46) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(86) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.21
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(4) ["d"]=> int(1) ["h"]=> int(5) ["i"]=> int(36) ["s"]=> int(8) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(123) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.20
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(9) ["h"]=> int(22) ["i"]=> int(2) ["s"]=> int(35) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(100) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.19
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(5) ["h"]=> int(17) ["i"]=> int(46) ["s"]=> int(43) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(67) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.18
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(13) ["h"]=> int(1) ["i"]=> int(51) ["s"]=> int(47) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(75) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.17
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(17) ["h"]=> int(14) ["i"]=> int(32) ["s"]=> int(31) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(79) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.16
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(26) ["h"]=> int(0) ["i"]=> int(13) ["s"]=> int(24) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(88) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.15
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(27) ["h"]=> int(1) ["i"]=> int(18) ["s"]=> int(3) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(89) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.14
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(2) ["h"]=> int(3) ["i"]=> int(37) ["s"]=> int(20) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(93) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.13
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(15) ["h"]=> int(7) ["i"]=> int(31) ["s"]=> int(33) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(106) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.12
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(19) ["h"]=> int(21) ["i"]=> int(19) ["s"]=> int(18) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(110) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.11
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(23) ["h"]=> int(4) ["i"]=> int(21) ["s"]=> int(34) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(114) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.10
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(25) ["h"]=> int(6) ["i"]=> int(6) ["s"]=> int(17) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(116) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.9
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(27) ["h"]=> int(11) ["i"]=> int(5) ["s"]=> int(14) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(118) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.6.8
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(29) ["h"]=> int(19) ["i"]=> int(13) ["s"]=> int(11) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(120) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.35
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(4) ["d"]=> int(21) ["h"]=> int(9) ["i"]=> int(23) ["s"]=> int(39) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(143) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.34
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(11) ["h"]=> int(0) ["i"]=> int(22) ["s"]=> int(24) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(102) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.33
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(6) ["h"]=> int(20) ["i"]=> int(43) ["s"]=> int(49) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(68) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.32
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(15) ["h"]=> int(3) ["i"]=> int(26) ["s"]=> int(8) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(77) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.31
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(2) ["d"]=> int(18) ["h"]=> int(17) ["i"]=> int(18) ["s"]=> int(0) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(80) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.30
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(1) ["h"]=> int(3) ["i"]=> int(14) ["s"]=> int(45) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(92) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.29
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(16) ["h"]=> int(21) ["i"]=> int(38) ["s"]=> int(32) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(107) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.28
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(21) ["h"]=> int(0) ["i"]=> int(34) ["s"]=> int(26) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(112) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.27
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(22) ["h"]=> int(2) ["i"]=> int(52) ["s"]=> int(48) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(113) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.26
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(26) ["h"]=> int(8) ["i"]=> int(32) ["s"]=> int(34) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(117) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.25
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(28) ["h"]=> int(14) ["i"]=> int(51) ["s"]=> int(4) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(119) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.5.24
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(4) ["d"]=> int(23) ["h"]=> int(15) ["i"]=> int(45) ["s"]=> int(26) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(0) ["days"]=> int(145) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.45
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(33) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.44
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(36) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.43
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(39) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.42
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(40) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.41
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(42) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.40
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(43) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.39
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(3) ["d"]=> int(10) ["h"]=> int(14) ["i"]=> int(8) ["s"]=> int(45) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(101) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.38
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(9) ["d"]=> int(15) ["h"]=> int(11) ["i"]=> int(4) ["s"]=> int(28) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(290) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.37
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(9) ["d"]=> int(15) ["h"]=> int(11) ["i"]=> int(4) ["s"]=> int(35) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(290) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.34 - 5.4.36
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(0) ["m"]=> int(9) ["d"]=> int(15) ["h"]=> int(11) ["i"]=> int(4) ["s"]=> int(36) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(290) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.30 - 5.4.32
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(54) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.22 - 5.4.29
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(54) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.17 - 5.4.21
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(53) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.4.1 - 5.4.16
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (8) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(53) ["invert"]=> int(1) ["days"]=> int(454) }
Output for 5.3.13 - 5.3.26, 5.4.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (8) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(52) ["invert"]=> int(1) ["days"]=> int(454) }
Output for 5.3.27 - 5.3.29
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (15) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(52) ["weekday"]=> int(0) ["weekday_behavior"]=> int(0) ["first_last_day_of"]=> int(0) ["invert"]=> int(1) ["days"]=> int(454) ["special_type"]=> int(0) ["special_amount"]=> int(0) ["have_weekday_relative"]=> int(0) ["have_special_relative"]=> int(0) }
Output for 5.3.0 - 5.3.12
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateInterval)#3 (8) { ["y"]=> int(1) ["m"]=> int(2) ["d"]=> int(28) ["h"]=> int(1) ["i"]=> int(35) ["s"]=> int(51) ["invert"]=> int(1) ["days"]=> int(454) }
Output for 5.2.0 - 5.2.17
12/31/2015object(DateTime)#1 (0) { } Fatal error: Call to undefined method DateTime::diff() in /in/VfZks on line 11
Process exited with code 255.
Output for 5.0.0 - 5.1.6
12/31/2015 Fatal error: Class 'DateTime' not found in /in/VfZks on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
12/31/2015 Fatal error: Cannot instantiate non-existent class: datetime in /in/VfZks on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
12/31/2015 Fatal error: Cannot instantiate non-existent class: datetime in /in/VfZks on line 8