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>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/89GWA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $current_time, !1 = $one_week
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd-M-Y+g%3Ai%3As+A'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
          7        ASSIGN                                                   !1, 604800
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.33 ms | 1394 KiB | 17 Q