3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Set demo vars $year = '2012'; $months = array('10','11','12'); $days = array('01','02','03','04','06','07','08','09','11','12','13','14','16','17','18','19','21','22','23','24','26','27','28','30'); $dateWs = array(); foreach($months AS $month) foreach($days AS $day) $datesWS[] = new DateTime($year.'-'.$month.'-'.$day); // Push DateTime object to the WebService array var_dump($datesWS); die(); // Shuffle shuffle($datesWS); // Sort dates usort($datesWS, function ($a, $b){ return ($a == $b) ? 0 : (($a > $b) ? 1 : -1); }); $dateIni = count($datesWS)>0 ? reset($datesWS) : 0; // Get first date $dateEnd = count($datesWS)>0 ? end($datesWS) : 0; // Get last date $interval = new DateInterval('P1D'); // Set date interval as 1 day // Generate dates range and Transform iterator to array $datesRange = iterator_to_array(new DatePeriod($dateIni, $interval, $dateEnd->modify( '+1 day' ))); // This way seems to work foreach($datesRange AS $date) { if(!in_array($date->format('d/m/Y'),array_values(array_map(function($obj){ return $obj->format('d/m/Y'); },$datesWS)))) $excludeDates[] = $date->format('d/m/Y'); } var_dump($excludeDates); /* // This way should be more efficient, but I'm fed up with it! // Get excluded dates $excludeDates = array_udiff($datesRange, $datesWS, function ($a, $b) { return $a == $b ? 0 : 1; }); // Comment/Uncomment this in order to print this method or the other one // Print array(objects) as array(strings) var_dump(array_values(array_map(function($obj){ return $obj->format('d/m/Y'); },$datesWS))); var_dump(array_values(array_map(function($obj){ return $obj->format('d/m/Y'); },$datesRange))); var_dump(array_values(array_map(function($obj){ return $obj->format('d/m/Y'); },$excludeDates))); */ ?>
Output for 5.4.30 - 7.1.0
array(72) { [0]=> object(DateTime)#1 (3) { ["date"]=> string(26) "2012-10-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2012-10-02 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2012-10-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2012-10-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [4]=> object(DateTime)#5 (3) { ["date"]=> string(26) "2012-10-06 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [5]=> object(DateTime)#6 (3) { ["date"]=> string(26) "2012-10-07 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [6]=> object(DateTime)#7 (3) { ["date"]=> string(26) "2012-10-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [7]=> object(DateTime)#8 (3) { ["date"]=> string(26) "2012-10-09 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [8]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2012-10-11 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [9]=> object(DateTime)#10 (3) { ["date"]=> string(26) "2012-10-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [10]=> object(DateTime)#11 (3) { ["date"]=> string(26) "2012-10-13 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [11]=> object(DateTime)#12 (3) { ["date"]=> string(26) "2012-10-14 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [12]=> object(DateTime)#13 (3) { ["date"]=> string(26) "2012-10-16 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [13]=> object(DateTime)#14 (3) { ["date"]=> string(26) "2012-10-17 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [14]=> object(DateTime)#15 (3) { ["date"]=> string(26) "2012-10-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [15]=> object(DateTime)#16 (3) { ["date"]=> string(26) "2012-10-19 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [16]=> object(DateTime)#17 (3) { ["date"]=> string(26) "2012-10-21 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [17]=> object(DateTime)#18 (3) { ["date"]=> string(26) "2012-10-22 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [18]=> object(DateTime)#19 (3) { ["date"]=> string(26) "2012-10-23 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [19]=> object(DateTime)#20 (3) { ["date"]=> string(26) "2012-10-24 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [20]=> object(DateTime)#21 (3) { ["date"]=> string(26) "2012-10-26 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [21]=> object(DateTime)#22 (3) { ["date"]=> string(26) "2012-10-27 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [22]=> object(DateTime)#23 (3) { ["date"]=> string(26) "2012-10-28 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [23]=> object(DateTime)#24 (3) { ["date"]=> string(26) "2012-10-30 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [24]=> object(DateTime)#25 (3) { ["date"]=> string(26) "2012-11-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [25]=> object(DateTime)#26 (3) { ["date"]=> string(26) "2012-11-02 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [26]=> object(DateTime)#27 (3) { ["date"]=> string(26) "2012-11-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [27]=> object(DateTime)#28 (3) { ["date"]=> string(26) "2012-11-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [28]=> object(DateTime)#29 (3) { ["date"]=> string(26) "2012-11-06 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [29]=> object(DateTime)#30 (3) { ["date"]=> string(26) "2012-11-07 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [30]=> object(DateTime)#31 (3) { ["date"]=> string(26) "2012-11-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [31]=> object(DateTime)#32 (3) { ["date"]=> string(26) "2012-11-09 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [32]=> object(DateTime)#33 (3) { ["date"]=> string(26) "2012-11-11 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [33]=> object(DateTime)#34 (3) { ["date"]=> string(26) "2012-11-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [34]=> object(DateTime)#35 (3) { ["date"]=> string(26) "2012-11-13 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [35]=> object(DateTime)#36 (3) { ["date"]=> string(26) "2012-11-14 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [36]=> object(DateTime)#37 (3) { ["date"]=> string(26) "2012-11-16 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [37]=> object(DateTime)#38 (3) { ["date"]=> string(26) "2012-11-17 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [38]=> object(DateTime)#39 (3) { ["date"]=> string(26) "2012-11-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [39]=> object(DateTime)#40 (3) { ["date"]=> string(26) "2012-11-19 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [40]=> object(DateTime)#41 (3) { ["date"]=> string(26) "2012-11-21 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [41]=> object(DateTime)#42 (3) { ["date"]=> string(26) "2012-11-22 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [42]=> object(DateTime)#43 (3) { ["date"]=> string(26) "2012-11-23 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [43]=> object(DateTime)#44 (3) { ["date"]=> string(26) "2012-11-24 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [44]=> object(DateTime)#45 (3) { ["date"]=> string(26) "2012-11-26 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [45]=> object(DateTime)#46 (3) { ["date"]=> string(26) "2012-11-27 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [46]=> object(DateTime)#47 (3) { ["date"]=> string(26) "2012-11-28 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [47]=> object(DateTime)#48 (3) { ["date"]=> string(26) "2012-11-30 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [48]=> object(DateTime)#49 (3) { ["date"]=> string(26) "2012-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [49]=> object(DateTime)#50 (3) { ["date"]=> string(26) "2012-12-02 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [50]=> object(DateTime)#51 (3) { ["date"]=> string(26) "2012-12-03 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [51]=> object(DateTime)#52 (3) { ["date"]=> string(26) "2012-12-04 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [52]=> object(DateTime)#53 (3) { ["date"]=> string(26) "2012-12-06 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [53]=> object(DateTime)#54 (3) { ["date"]=> string(26) "2012-12-07 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [54]=> object(DateTime)#55 (3) { ["date"]=> string(26) "2012-12-08 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [55]=> object(DateTime)#56 (3) { ["date"]=> string(26) "2012-12-09 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [56]=> object(DateTime)#57 (3) { ["date"]=> string(26) "2012-12-11 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [57]=> object(DateTime)#58 (3) { ["date"]=> string(26) "2012-12-12 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [58]=> object(DateTime)#59 (3) { ["date"]=> string(26) "2012-12-13 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [59]=> object(DateTime)#60 (3) { ["date"]=> string(26) "2012-12-14 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [60]=> object(DateTime)#61 (3) { ["date"]=> string(26) "2012-12-16 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [61]=> object(DateTime)#62 (3) { ["date"]=> string(26) "2012-12-17 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [62]=> object(DateTime)#63 (3) { ["date"]=> string(26) "2012-12-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [63]=> object(DateTime)#64 (3) { ["date"]=> string(26) "2012-12-19 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [64]=> object(DateTime)#65 (3) { ["date"]=> string(26) "2012-12-21 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [65]=> object(DateTime)#66 (3) { ["date"]=> string(26) "2012-12-22 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [66]=> object(DateTime)#67 (3) { ["date"]=> string(26) "2012-12-23 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [67]=> object(DateTime)#68 (3) { ["date"]=> string(26) "2012-12-24 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [68]=> object(DateTime)#69 (3) { ["date"]=> string(26) "2012-12-26 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [69]=> object(DateTime)#70 (3) { ["date"]=> string(26) "2012-12-27 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [70]=> object(DateTime)#71 (3) { ["date"]=> string(26) "2012-12-28 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [71]=> object(DateTime)#72 (3) { ["date"]=> string(26) "2012-12-30 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 5.3.0 - 5.4.29
array(72) { [0]=> object(DateTime)#1 (3) { ["date"]=> string(19) "2012-10-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [1]=> object(DateTime)#2 (3) { ["date"]=> string(19) "2012-10-02 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [2]=> object(DateTime)#3 (3) { ["date"]=> string(19) "2012-10-03 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [3]=> object(DateTime)#4 (3) { ["date"]=> string(19) "2012-10-04 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [4]=> object(DateTime)#5 (3) { ["date"]=> string(19) "2012-10-06 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [5]=> object(DateTime)#6 (3) { ["date"]=> string(19) "2012-10-07 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [6]=> object(DateTime)#7 (3) { ["date"]=> string(19) "2012-10-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [7]=> object(DateTime)#8 (3) { ["date"]=> string(19) "2012-10-09 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [8]=> object(DateTime)#9 (3) { ["date"]=> string(19) "2012-10-11 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [9]=> object(DateTime)#10 (3) { ["date"]=> string(19) "2012-10-12 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [10]=> object(DateTime)#11 (3) { ["date"]=> string(19) "2012-10-13 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [11]=> object(DateTime)#12 (3) { ["date"]=> string(19) "2012-10-14 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [12]=> object(DateTime)#13 (3) { ["date"]=> string(19) "2012-10-16 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [13]=> object(DateTime)#14 (3) { ["date"]=> string(19) "2012-10-17 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [14]=> object(DateTime)#15 (3) { ["date"]=> string(19) "2012-10-18 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [15]=> object(DateTime)#16 (3) { ["date"]=> string(19) "2012-10-19 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [16]=> object(DateTime)#17 (3) { ["date"]=> string(19) "2012-10-21 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [17]=> object(DateTime)#18 (3) { ["date"]=> string(19) "2012-10-22 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [18]=> object(DateTime)#19 (3) { ["date"]=> string(19) "2012-10-23 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [19]=> object(DateTime)#20 (3) { ["date"]=> string(19) "2012-10-24 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [20]=> object(DateTime)#21 (3) { ["date"]=> string(19) "2012-10-26 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [21]=> object(DateTime)#22 (3) { ["date"]=> string(19) "2012-10-27 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [22]=> object(DateTime)#23 (3) { ["date"]=> string(19) "2012-10-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [23]=> object(DateTime)#24 (3) { ["date"]=> string(19) "2012-10-30 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [24]=> object(DateTime)#25 (3) { ["date"]=> string(19) "2012-11-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [25]=> object(DateTime)#26 (3) { ["date"]=> string(19) "2012-11-02 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [26]=> object(DateTime)#27 (3) { ["date"]=> string(19) "2012-11-03 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [27]=> object(DateTime)#28 (3) { ["date"]=> string(19) "2012-11-04 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [28]=> object(DateTime)#29 (3) { ["date"]=> string(19) "2012-11-06 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [29]=> object(DateTime)#30 (3) { ["date"]=> string(19) "2012-11-07 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [30]=> object(DateTime)#31 (3) { ["date"]=> string(19) "2012-11-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [31]=> object(DateTime)#32 (3) { ["date"]=> string(19) "2012-11-09 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [32]=> object(DateTime)#33 (3) { ["date"]=> string(19) "2012-11-11 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [33]=> object(DateTime)#34 (3) { ["date"]=> string(19) "2012-11-12 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [34]=> object(DateTime)#35 (3) { ["date"]=> string(19) "2012-11-13 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [35]=> object(DateTime)#36 (3) { ["date"]=> string(19) "2012-11-14 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [36]=> object(DateTime)#37 (3) { ["date"]=> string(19) "2012-11-16 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [37]=> object(DateTime)#38 (3) { ["date"]=> string(19) "2012-11-17 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [38]=> object(DateTime)#39 (3) { ["date"]=> string(19) "2012-11-18 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [39]=> object(DateTime)#40 (3) { ["date"]=> string(19) "2012-11-19 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [40]=> object(DateTime)#41 (3) { ["date"]=> string(19) "2012-11-21 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [41]=> object(DateTime)#42 (3) { ["date"]=> string(19) "2012-11-22 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [42]=> object(DateTime)#43 (3) { ["date"]=> string(19) "2012-11-23 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [43]=> object(DateTime)#44 (3) { ["date"]=> string(19) "2012-11-24 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [44]=> object(DateTime)#45 (3) { ["date"]=> string(19) "2012-11-26 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [45]=> object(DateTime)#46 (3) { ["date"]=> string(19) "2012-11-27 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [46]=> object(DateTime)#47 (3) { ["date"]=> string(19) "2012-11-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [47]=> object(DateTime)#48 (3) { ["date"]=> string(19) "2012-11-30 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [48]=> object(DateTime)#49 (3) { ["date"]=> string(19) "2012-12-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [49]=> object(DateTime)#50 (3) { ["date"]=> string(19) "2012-12-02 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [50]=> object(DateTime)#51 (3) { ["date"]=> string(19) "2012-12-03 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [51]=> object(DateTime)#52 (3) { ["date"]=> string(19) "2012-12-04 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [52]=> object(DateTime)#53 (3) { ["date"]=> string(19) "2012-12-06 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [53]=> object(DateTime)#54 (3) { ["date"]=> string(19) "2012-12-07 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [54]=> object(DateTime)#55 (3) { ["date"]=> string(19) "2012-12-08 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [55]=> object(DateTime)#56 (3) { ["date"]=> string(19) "2012-12-09 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [56]=> object(DateTime)#57 (3) { ["date"]=> string(19) "2012-12-11 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [57]=> object(DateTime)#58 (3) { ["date"]=> string(19) "2012-12-12 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [58]=> object(DateTime)#59 (3) { ["date"]=> string(19) "2012-12-13 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [59]=> object(DateTime)#60 (3) { ["date"]=> string(19) "2012-12-14 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [60]=> object(DateTime)#61 (3) { ["date"]=> string(19) "2012-12-16 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [61]=> object(DateTime)#62 (3) { ["date"]=> string(19) "2012-12-17 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [62]=> object(DateTime)#63 (3) { ["date"]=> string(19) "2012-12-18 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [63]=> object(DateTime)#64 (3) { ["date"]=> string(19) "2012-12-19 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [64]=> object(DateTime)#65 (3) { ["date"]=> string(19) "2012-12-21 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [65]=> object(DateTime)#66 (3) { ["date"]=> string(19) "2012-12-22 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [66]=> object(DateTime)#67 (3) { ["date"]=> string(19) "2012-12-23 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [67]=> object(DateTime)#68 (3) { ["date"]=> string(19) "2012-12-24 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [68]=> object(DateTime)#69 (3) { ["date"]=> string(19) "2012-12-26 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [69]=> object(DateTime)#70 (3) { ["date"]=> string(19) "2012-12-27 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [70]=> object(DateTime)#71 (3) { ["date"]=> string(19) "2012-12-28 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } [71]=> object(DateTime)#72 (3) { ["date"]=> string(19) "2012-12-30 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/h0J49 on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/h0J49 on line 22
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/h0J49 on line 22
Process exited with code 255.