3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); $yes = 0; for ($i = 0; $i < 12; ++$i) { $result = strtotime(strtolower($months[$i])); if ($result != $months[$i]) { $correct = "no"; } else { $correct = "yes"; $yes++; } echo $correct . " - " . $result . "\n"; } echo "\n" . $yes . " / 12 correct months."; ?>

preferences:
37.21 ms | 402 KiB | 5 Q