3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(DateTime::createFromFormat('Y-m-d\TH:i:sP[e]', '2022-02-18T00:00:00+01:00[Europe/Berlin]')); var_dump(var_dump(DateTime::GetLastErrors()));
Output for git.master, git.master_jit
bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(2) ["errors"]=> array(2) { [26]=> string(47) "The timezone could not be found in the database" [40]=> string(43) "Not enough data available to satisfy format" } } NULL
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2022-02-18 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Berlin" } bool(false) NULL

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