3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mo = "February"; $tim = strtotime($mo); $d = date('F', $tim); echo $mo . "\n" . $tim . "\n" . $d . "\n"; $a = date('F', -1); $b = date('F', false); $c = date('F', 1360623600); echo $a . "\n" . $b . "\n" . $c . "\n";
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
February 1360623600 February January January February
Output for 5.1.0 - 5.1.6
February January January January February
Output for 4.3.0 - 5.0.5
February -1 January January January February