3v4l.org

run code in 300+ PHP versions simultaneously
<?php $daysInMonth = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $timestampFailing = false; for ($year = 1500; $year < 2000; $year++) { for ($month = 1; $month <= 12; $month++) { for ($day = 1; $day < $daysInMonth[$month]; $day++) { $baseString = sprintf("%4d-%02d-%02d 00:00:00", $year, $month, $day); $timestamp = strtotime($baseString); // Currently failing, ignore if (!$timestamp && $timestampFailing) { continue; } // Newly failed: log and continue if (!$timestamp) { $timestampFailing = true; echo "Timestamp failing start at $baseString\n"; continue; } // Stopped failing: log and continue if ($timestampFailing && $timestamp) { $timestampFailing = false; echo "Timestamp failinng end at $baseString\n"; } // Failed round trip. $roundTrip = date("Y-m-d H:i:s", $timestamp); if ($baseString !== $roundTrip) { echo "$baseString ($timestamp) $roundTrip\n"; } } } }
Output for git.master, git.master_jit, rfc.property-hooks
1916-05-01 00:00:00 (-1693700372) 1916-05-01 01:00:00 1937-07-01 00:00:00 (-1025745572) 1937-07-01 00:00:28 1940-05-16 00:00:00 (-935022000) 1940-05-16 01:40:00

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.78 ms | 401 KiB | 8 Q