3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = \DateTime::createFromFormat('Y-m-d\TH:i:sP', '2018-09-30T22:00:00+02:00'); var_dump($dt);
Output for 7.1.21 - 7.3.0rc3
object(DateTime)#1 (3) { ["date"]=> string(26) "2018-09-30 22:00:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+02:00" }