3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vBillMonthPrev = '11'; $vBillYearPrev = (int)date('Y') - ((int)$vBillMonthPrev > (int)date('n') ? 1 : 0); $date = date_create_from_format('U', mktime(0, 0, 0, $vBillMonthPrev, 15, $vBillYearPrev)); $m_array = array(); for ($i = 1; $i < 7; $i++) { $date->modify('-1 month'); $m_array[] = $date->format('M-y'); } print_r($m_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Oct-20 [1] => Sep-20 [2] => Aug-20 [3] => Jul-20 [4] => Jun-20 [5] => May-20 )

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:
26.41 ms | 405 KiB | 5 Q