3v4l.org

run code in 200+ PHP versions simultaneously
<?php $d1 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z'); echo $d1->date; $d2 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z'); print_r($d2); echo $d2->date;
based on S1pqr
Output for 5.6.30 - 7.2.12
Notice: Undefined property: DateTime::$date in /in/fN6HB on line 4 DateTime Object ( [date] => 2017-09-20 09:16:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2017-09-20 09:16:00.000000