3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_TIME, 'fr_FR.utf8','fra'); $date = "31/10/2014"; $date = explode("/", $element['dateR']); $date = $date[1]."/".$date[0]."/".$date[2]; $date = strftime("%A %D %Y",strtotime($date)); echo $date;
Output for 8.3.0 - 8.3.6
Warning: Undefined variable $element in /in/um0ha on line 4 Warning: Trying to access array offset on null in /in/um0ha on line 4 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/um0ha on line 4 Warning: Undefined array key 1 in /in/um0ha on line 5 Warning: Undefined array key 2 in /in/um0ha on line 5 Deprecated: Function strftime() is deprecated in /in/um0ha on line 6 jeudi 01/01/70 1970
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: Undefined variable $element in /in/um0ha on line 4 Warning: Trying to access array offset on value of type null in /in/um0ha on line 4 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/um0ha on line 4 Warning: Undefined array key 1 in /in/um0ha on line 5 Warning: Undefined array key 2 in /in/um0ha on line 5 Deprecated: Function strftime() is deprecated in /in/um0ha on line 6 jeudi 01/01/70 1970
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $element in /in/um0ha on line 4 Warning: Trying to access array offset on value of type null in /in/um0ha on line 4 Warning: Undefined array key 1 in /in/um0ha on line 5 Warning: Undefined array key 2 in /in/um0ha on line 5 jeudi 01/01/70 1970
Output for 7.4.3 - 7.4.33
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Trying to access array offset on value of type null in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 jeudi 01/01/70 1970
Output for 7.4.0
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Trying to access array offset on value of type null in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 Thursday 01/01/70 1970
Output for 7.3.32 - 7.3.33
jeudi 01/01/70 1970
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 jeudi 01/01/70 1970
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 Thursday 01/01/70 1970
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 Thursday 01/01/70 1970
Output for 4.3.6 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5 Thursday 01/01/70 1970
Output for 4.3.0 - 4.3.5
Notice: Undefined variable: element in /in/um0ha on line 4 Notice: Undefined offset: 1 in /in/um0ha on line 5 Notice: Undefined offset: 2 in /in/um0ha on line 5

preferences:
220.63 ms | 402 KiB | 341 Q