3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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