3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "20140228115"; if (strlen($date) < 12) { $date = = substr_replace($date, "0", strlen($date) - 2, 0); } var_dump(DateTime::createFromFormat("YmdGi", "20140228115")); print_r(DateTime::getLastErrors());
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '=' in /in/ZbTcY on line 5
Process exited with code 255.