3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = array("today", "Saturday", "sat 21 dec", "21 dec 13", "12-2013", "december"); $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 6 valori 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - today - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - Saturday - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - sat 21 dec - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - 21 dec 13 - - Thu, 01 Jan 1970 01:00:00 +0100 - 12-2013 - 1387580400 - Sat, 21 Dec 2013 00:00:00 +0100 - december -

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