3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timestamp = strtotime("May"); echo "The unix epoch time from strtotime was $timestamp"; if ($timestamp === false) { echo "strtotime returned false"; } elseif ($timestamp === -1) { echo "strtotime didn't recognize the date string"; } else { echo date('F',strtotime($timestamp)); } ?>
Output for 5.2.0 - 7.1.0
The unix epoch time from strtotime was 1367791200January
Output for 5.1.0 - 5.1.6
The unix epoch time from strtotime was strtotime returned false
Output for 4.3.0 - 5.0.5
The unix epoch time from strtotime was -1strtotime didn't recognize the date string