3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t=date('Y'); $q = date('m'); for($e=$q;$e<=($q+2);$e++){ $ren = $t.'-'. sprintf("%'.02d", $e); var_dump($ren); } $begin = new DateTime( '2016-01-11' ); $numMonths = 3; for($i=0; $i<$numMonths; $i++) { var_dump($begin->modify( '+1 month' )->format("Y-m-d")); }
Output for git.master, git.master_jit, rfc.property-hooks
string(7) "2016-01" string(7) "2016-02" string(7) "2016-03" string(10) "2016-02-11" string(10) "2016-03-11" string(10) "2016-04-11"

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