3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getQuarterEndingOf($month) { $quarterEndings = [ 1 => 'Mar', 2 => 'Mar', 3 => 'Mar', 4 => 'Jun', 5 => 'Jun', 6 => 'Jun', 7 => 'Sep', 8 => 'Sep', 9 => 'Sep', 10 => 'Dec', 11 => 'Dec', 12 => 'Dec', ]; $timeFormat = sprintf('%s %s', $quarterEndings[$month], date('Y') ); return new \DateTime($timeFormat); } for($m=1; $m <= 12; $m++) { var_dump(getQuarterEndingOf($m)); $d = new \DateTime(); var_dump($d->setDate(date('Y'), floor($m/3)*3,1)); echo '==='; }
based on 9v1kX
Output for 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.004049" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.004121" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004179" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004237" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004294" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004352" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004410" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004468" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004524" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004582" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004638" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.004694" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.002796" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.002835" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002869" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002903" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002935" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.002967" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.002999" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.003031" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.003064" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.003096" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.003128" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.003159" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.002555" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.002585" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002613" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002640" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.002667" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.002694" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.002721" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.002748" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.002781" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.002807" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.002835" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.002867" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.013026" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.013130" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.013224" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.013333" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.013427" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.013515" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.013609" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.013704" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.013793" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.013890" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.013987" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.014079" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.007840" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.007893" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.007942" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.007989" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.008036" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.008082" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.008126" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.008171" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.008217" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.008264" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.008310" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.008356" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.004079" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.004163" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004240" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004315" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.004391" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004465" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004540" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.004614" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004687" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004760" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.004834" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.004908" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 5.4.30 - 5.4.45, 5.5.14 - 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-12-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-06-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-12-01 04:56:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2014-12-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-03-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-12-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-06-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2015-03-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(19) "2015-06-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-03-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-06-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2015-06-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-06-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-09-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2015-06-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-12-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2015-09-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(19) "2015-09-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===object(DateTime)#2 (3) { ["date"]=> string(19) "2015-12-01 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2015-12-01 04:56:05" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } ===
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/oAMnY on line 5
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 '[' in /in/oAMnY on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/oAMnY on line 5
Process exited with code 255.