3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = '2015-10-20T08:18:59+00:00'; $datetime = \DateTime::createFromFormat('c', (string) $data, $timezone); var_dump($datetime);
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: timezone in /in/LMZGW on line 4 bool(false)
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: timezone in /in/LMZGW on line 4 Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, null given in /in/LMZGW on line 4 bool(false)