3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[1] = "Enero"; $arr[2] = "Febrero"; $arr[3] = "Marzo"; $arr[4] = "Abril"; $arr[5] = "Mayo"; $arr[6] = "Junio"; $arr[7] = "Julio"; $arr[8] = "Agosto"; $arr[9] = "Septiembre"; $arr[10] = "Octubre"; $arr[11] = "Noviembre"; $arr[12] = "Diciembre"; $months = $arr; $j = date('n'); $y = date('Y'); for ($i = 12; $i >= 1; $i--) { if ($j == 0) { $j = 12; $y--; } $k = $j; if ($k < 10) $k = '0' . $k; $meses[$y . '-' . $k] = strtoupper($months[$j]) . ' ' . $y; $j--; } var_dump($meses);
Output for git.master, git.master_jit, rfc.property-hooks
array(12) { ["2014-08"]=> string(11) "AGOSTO 2014" ["2014-07"]=> string(10) "JULIO 2014" ["2014-06"]=> string(10) "JUNIO 2014" ["2014-05"]=> string(9) "MAYO 2014" ["2014-04"]=> string(10) "ABRIL 2014" ["2014-03"]=> string(10) "MARZO 2014" ["2014-02"]=> string(12) "FEBRERO 2014" ["2014-01"]=> string(10) "ENERO 2014" ["2013-12"]=> string(14) "DICIEMBRE 2013" ["2013-11"]=> string(14) "NOVIEMBRE 2013" ["2013-10"]=> string(12) "OCTUBRE 2013" ["2013-09"]=> string(15) "SEPTIEMBRE 2013" }

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