3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = DateTime::createFromFormat('Y-m-d', '2015-04-01'); echo $date->format('d/m/Y') . "\n"; for ($n = 0; $n < 10; $n++) { $date = $date->modify("first Tuesday of +$n weeks"); echo $date->format('d/m/Y') . "\n"; echo $n."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
01/04/2015 07/04/2015 0 14/04/2015 1 21/04/2015 2 28/04/2015 3 05/05/2015 4 09/06/2015 5 14/07/2015 6 25/08/2015 7 29/09/2015 8 03/11/2015 9

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