3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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/>"; }
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/rOWdd on line 3
Process exited with code 255.