3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_time = strtotime(date('d-M-Y g:i:s A'));$one_week = 3600 * 24 * 7;// your file code$fword = $arr[0]; // assuming that $fword has file date.// $fword = str_replace("/", "-", $fword);$file_time = strtotime($fword);$diff = $current_time - $file_time;if($diff>$one_week){ echo " date : ".$fowrd." is older than one week <br/>";}else { echo " date : ".$fowrd." is not older than one week <br/>"; }</php>
Output for git.master, git.master_jit, rfc.property-hooks

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