3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array("1985-03-17", "today", "17/03", "17-03", "17 03 1985", "17/03/1985", "mar 85", "03/1985", "03-1985", "march"); $unixArray = array(); for($i = 0, $size = count($testArray); $i < $size; ++$i) { $testDate = $testArray[$i]; $unixArray[$i] = strtotime($testDate); } echo "ci sono ", count($unixArray); echo " valori \n" ; for($i = 0, $size = count($unixArray); $i < $size; ++$i) { $unixDate = $unixArray[$i]; echo $unixDate, " - "; // echo date('l H\:iO',$unixDate), " - "; echo date('r',$unixDate), " - "; echo $testArray[$i], " - "; echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
ci sono 10 valori 479862000 - Sun, 17 Mar 1985 00:00:00 +0100 - 1985-03-17 - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - today - - Thu, 01 Jan 1970 01:00:00 +0100 - 17/03 - - Thu, 01 Jan 1970 01:00:00 +0100 - 17-03 - - Thu, 01 Jan 1970 01:00:00 +0100 - 17 03 1985 - - Thu, 01 Jan 1970 01:00:00 +0100 - 17/03/1985 - - Thu, 01 Jan 1970 01:00:00 +0100 - mar 85 - - Thu, 01 Jan 1970 01:00:00 +0100 - 03/1985 - - Thu, 01 Jan 1970 01:00:00 +0100 - 03-1985 - 1363820400 - Thu, 21 Mar 2013 00:00:00 +0100 - march -

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:
46.38 ms | 402 KiB | 8 Q