3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array("monday", "December", "February 2014", "now"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo $testDate, "\n"; // echo $unixDate, "\n"; echo date('l H\:iO',$unixDate), "\n"; // echo date('r',$unixDate), "\n"; echo "\n"; }
Output for 5.2.0 - 5.6.24, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
now Monday 00:00+0100 now Saturday 00:00+0100 now Saturday 00:00+0100 now Saturday 16:51+0100
Output for 5.1.0 - 5.1.6
now Monday 00:00+0100 now Thursday 01:00+0100 now Saturday 00:00+0100 now Saturday 16:51+0100
Output for 4.3.5 - 4.4.9, 5.0.3 - 5.0.5
now Monday 00:00+0100 now Thursday 00:59+0100 now Friday 00:00+0100 now Saturday 16:51+0100
Output for 5.0.0 - 5.0.2
now Monday 00:00+0100 now Thursday 00:59+0100 now Friday 00:00+0100 now Saturday 00:00+0100
Output for 4.3.0 - 4.3.4
now Monday 00:00+0100 now Thursday 00:59+0100 now Tuesday 00:00+0200 now Saturday 16:51+0100