3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $start = strtotime('1900-01-01 00:00:00'); $dates = array('2013-01-01 00:01:59', '2013-01-03 11:12:05', '2012-10-28 23:07:06'); foreach ($dates as $d) { $timestamp = strtotime($d); $diff = $timestamp - $start; $daysDiff = floor($diff/(60*60*24)); $dateFact = $daysDiff + 1; echo $diff - $daysDiff.PHP_EOL; echo $dateFact.PHP_EOL.PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
3565946046 41274 3566159050 41276 3560413218 41209

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:
34.56 ms | 401 KiB | 8 Q