3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timestamp = strtotime("May"); if ($timestamp === false) { echo "The string $timestamp is bogus"; } elseif ($timestamp === -1) { echo "strtotime didn't recognize the date string"; } else { echo date('F',strtotime($timestamp)); } ?>
Output for 5.2.0 - 7.2.0
January
Output for 5.1.0 - 5.1.6
The string is bogus
Output for 4.3.0 - 5.0.5
strtotime didn't recognize the date string