3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tz = new DateTimeZone("UTC"); $STRING = "21.03.2016 08:40"; $dateTimeObj = DateTime::createFromFormat("n.j.Y G:i", $dateTimeString, $tz); print_r($dateTimeObj);
based on GKGDY
Output for 5.6.30, hhvm-3.21.3, 7.0.30 - 7.3.0alpha1
Notice: Undefined variable: dateTimeString in /in/CXVZX on line 5
Output for hhvm-3.22.0
Notice: Undefined variable: dateTimeString in /in/CXVZX on line -1
Output for hhvm-3.18.5
Notice: Undefined variable: dateTimeString in /in/CXVZX on line 5 Warning: createFromFormat() expects parameter 2 to be string, null given in /in/CXVZX on line 5