3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array("2013-12-21", "today", "21/12", "21-12", "21 12 2013", "21/12/2013", "21/12/13", "12/2013", "12-2013", "august"); $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 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - 2013-12-21 - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - today - - Thu, 01 Jan 1970 01:00:00 +0100 - 21/12 - - Thu, 01 Jan 1970 01:00:00 +0100 - 21-12 - - Thu, 01 Jan 1970 01:00:00 +0100 - 21 12 2013 - - Thu, 01 Jan 1970 01:00:00 +0100 - 21/12/2013 - - Thu, 01 Jan 1970 01:00:00 +0100 - 21/12/13 - - Thu, 01 Jan 1970 01:00:00 +0100 - 12/2013 - - Thu, 01 Jan 1970 01:00:00 +0100 - 12-2013 - 1377036000 - Wed, 21 Aug 2013 00:00:00 +0200 - august -

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