3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sarting = "2015-06-01 00:00:00"; $store_date = []; $date = new DateTime($sarting); for ($i = 0; $i < 20; $i++) { $date->modify('+3 months'); $store_date[] = $date->format('Y-m-d'); } print_r($store_date);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2015-09-01 [1] => 2015-12-01 [2] => 2016-03-01 [3] => 2016-06-01 [4] => 2016-09-01 [5] => 2016-12-01 [6] => 2017-03-01 [7] => 2017-06-01 [8] => 2017-09-01 [9] => 2017-12-01 [10] => 2018-03-01 [11] => 2018-06-01 [12] => 2018-09-01 [13] => 2018-12-01 [14] => 2019-03-01 [15] => 2019-06-01 [16] => 2019-09-01 [17] => 2019-12-01 [18] => 2020-03-01 [19] => 2020-06-01 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
133.04 ms | 406 KiB | 5 Q