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'); for ( $i=0; $i<12; $i++ ) { $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 $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 string(0) "" Warning: Undefined variable $FrenchMonnth in /in/FuWBn on line 19 Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /in/FuWBn on line 19 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:
167.04 ms | 415 KiB | 5 Q