3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'fr_FR'); date_default_timezone_set('Europe/Paris'); $currentMonth = 4; for ($x = $currentMonth; $x < $currentMonth + 12; $x++) { $months[] = date('Y-F-m', mktime(0, 0, 0, $x, 1)); } $FrenchMonth = array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'); $EnglishMonth = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); $twelvemonthsdata = explode('-',$months[$i]); $twelvemonthsM = $twelvemonthsdata[1]; $twelveFormatMonth = 'F'; $twelvemonthinfrench = str_replace( $EnglishMonth,$FrenchMonnth, date($twelveFormatMonth, strtotime($twelvemonthsM))); var_dump($twelvemonthinfrench);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $i in /in/AqePo on line 15 Warning: Undefined array key "" in /in/AqePo on line 15 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/AqePo on line 15 Warning: Undefined array key 1 in /in/AqePo on line 16 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/AqePo on line 18 Warning: Undefined variable $FrenchMonnth in /in/AqePo on line 18 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/AqePo on line 18 string(0) ""

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:
183.14 ms | 407 KiB | 5 Q