3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function GetMonthFromMySQLString($mysql_datetime) { return date('m', strtotime($mysql_datetime)); } echo GetMonthFromMySQLString("2011-11-26 18:29:09");
Output for 4.3.0 - 7.1.0
11