3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.14 - 8.1.32, 8.2.1 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
string(29) "2017-11-29T15:10:24.123+01:00" string(29) "2017-11-29T15:10:24.123+01:00" object(DateTime)#1 (3) { ["date"]=> string(26) "2017-11-29 15:10:24.123000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" } bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(19) ["errors"]=> array(15) { [0]=> string(35) "The format separator does not match" [1]=> string(35) "The format separator does not match" [2]=> string(35) "The format separator does not match" [3]=> string(35) "The format separator does not match" [4]=> string(35) "The format separator does not match" [5]=> string(35) "The format separator does not match" [6]=> string(35) "The format separator does not match" [7]=> string(35) "The format separator does not match" [8]=> string(35) "The format separator does not match" [9]=> string(35) "The format separator does not match" [11]=> string(35) "The format separator does not match" [12]=> string(35) "The format separator does not match" [13]=> string(35) "The format separator does not match" [14]=> string(35) "The format separator does not match" [15]=> string(43) "Not enough data available to satisfy format" } }
Output for 8.1.7 - 8.1.13, 8.2.0
string(29) "2017-11-29T15:10:24.123+01:00" string(29) "2017-11-29T15:10:24.123+01:00" object(DateTime)#1 (3) { ["date"]=> string(26) "2017-11-29 15:10:24.123000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" } bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(12) ["errors"]=> array(10) { [0]=> string(35) "The format separator does not match" [1]=> string(35) "The format separator does not match" [2]=> string(35) "The format separator does not match" [3]=> string(35) "The format separator does not match" [4]=> string(35) "The format separator does not match" [5]=> string(35) "The format separator does not match" [6]=> string(35) "The format separator does not match" [7]=> string(35) "The format separator does not match" [8]=> string(47) "The timezone could not be found in the database" [15]=> string(43) "Not enough data available to satisfy format" } }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.31, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.6
string(29) "2017-11-29T15:10:24.123+01:00" string(29) "2017-11-29T15:10:24.123+01:00" object(DateTime)#1 (3) { ["date"]=> string(26) "2017-11-29 15:10:24.123000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+01:00" } bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(12) ["errors"]=> array(10) { [0]=> string(35) "The format separator does not match" [1]=> string(35) "The format separator does not match" [2]=> string(35) "The format separator does not match" [3]=> string(35) "The format separator does not match" [4]=> string(35) "The format separator does not match" [5]=> string(35) "The format separator does not match" [6]=> string(35) "The format separator does not match" [7]=> string(35) "The format separator does not match" [8]=> string(47) "The timezone could not be found in the database" [15]=> string(12) "Data missing" } }
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Undefined class constant 'RFC3339_EXTENDED' in /in/TK1oK on line 4
Process exited with code 255.
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 4 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 6 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 20 Fatal error: Undefined class constant 'RFC3339_EXTENDED' in /in/TK1oK on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 4 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 6 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 20 Fatal error: Class 'DateTime' not found in /in/TK1oK on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 4 Parse error: syntax error, unexpected ';', expecting '(' in /in/TK1oK on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 4 Parse error: parse error, unexpected ';', expecting '(' in /in/TK1oK on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/TK1oK on line 4 Parse error: parse error, expecting `'('' in /in/TK1oK on line 4
Process exited with code 255.

preferences:
176.18 ms | 426 KiB | 5 Q