3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result =\DateTime::createFromFormat('Y-m-d\TH:i:s.????', '2016-01-26T19:00:00.000Z', 'UTC'); var_dump($result); var_dump(\DateTime::getLastErrors());
based on fbgbU
Output for 7.2.0
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, string given in /in/OuLAc:3 Stack trace: #0 /in/OuLAc(3): DateTime::createFromFormat('Y-m-d\\TH:i:s.??...', '2016-01-26T19:0...', 'UTC') #1 {main} thrown in /in/OuLAc on line 3
Process exited with code 255.
Output for 5.3.22 - 7.1.10
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /in/OuLAc on line 3 bool(false) bool(false)