3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testArray = array(-1, 0, 1, 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 - 7.1.0
Notice: Use of undefined constant December - assumed 'December' in /in/qPsb7 on line 2 now Saturday 18:50+0100 now Thursday 01:00+0100 now Thursday 01:00+0100 now Saturday 00:00+0100 now Saturday 00:00+0100 now Saturday 16:50+0100
Output for 5.1.0 - 5.1.6
Notice: Use of undefined constant December - assumed 'December' in /in/qPsb7 on line 2 now Saturday 18:50+0100 now Thursday 01:00+0100 now Thursday 01:00+0100 now Thursday 01:00+0100 now Saturday 00:00+0100 now Saturday 16:50+0100
Output for 4.3.5 - 4.4.9, 5.0.3 - 5.0.5
Notice: Use of undefined constant December - assumed 'December' in /in/qPsb7 on line 2 now Thursday 00:59+0100 now Saturday 00:00+0100 now Saturday 01:00+0100 now Thursday 00:59+0100 now Friday 00:00+0100 now Saturday 16:50+0100
Output for 5.0.0 - 5.0.2
Notice: Use of undefined constant December - assumed 'December' in /in/qPsb7 on line 2 now Thursday 00:59+0100 now Saturday 00:00+0100 now Saturday 01: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
Notice: Use of undefined constant December - assumed 'December' in /in/qPsb7 on line 2 now Thursday 00:59+0100 now Saturday 00:00+0100 now Saturday 01:00+0100 now Thursday 00:59+0100 now Tuesday 00:00+0200 now Saturday 16:50+0100