3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i <= 12; $i++) { $months[] = date("Y-m", strtotime( date( 'Y-m-01' )." -$i months")); } print_r($months);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2017-07 [1] => 2017-06 [2] => 2017-05 [3] => 2017-04 [4] => 2017-03 [5] => 2017-02 [6] => 2017-01 [7] => 2016-12 [8] => 2016-11 [9] => 2016-10 [10] => 2016-09 [11] => 2016-08 [12] => 2016-07 )

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:
71.71 ms | 402 KiB | 8 Q