1--TEST-- 2Bug GH-9700 (DateTime::createFromFormat: Parsing TZID string is too greedy) 3--FILE-- 4<?php 5var_dump(DateTime::createFromFormat('Y-m-d\TH:i:sP[e]', '2022-02-18T00:00:00+01:00[Europe/Berlin]')); 6?> 7--EXPECTF-- 8object(DateTime)#%d (%d) { 9 ["date"]=> 10 string(26) "2022-02-18 00:00:00.000000" 11 ["timezone_type"]=> 12 int(3) 13 ["timezone"]=> 14 string(13) "Europe/Berlin" 15} 16