3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i <= 12; $i++) { $start = date_parse("2015-01-31"); $target = mktime(0, 0, 0, $start["month"] + $i, $start["day"], $start["year"]); $tdate = getdate($target); if ($tdate["mday"] < $start["day"]) { $target = mktime(0, 0, 0, $start["month"] + $i + 1, 0, $start["year"]); } printf("+%02d = %s\n", $i, date("Y-m-d\n", $target)); }
Output for git.master, git.master_jit, rfc.property-hooks
+00 = 2015-01-31 +01 = 2015-02-28 +02 = 2015-03-31 +03 = 2015-04-30 +04 = 2015-05-31 +05 = 2015-06-30 +06 = 2015-07-31 +07 = 2015-08-31 +08 = 2015-09-30 +09 = 2015-10-31 +10 = 2015-11-30 +11 = 2015-12-31 +12 = 2016-01-31

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:
48.57 ms | 401 KiB | 8 Q