3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); $end = $start - 60 * 60 * 24 * 7; for($checkdate=$start;$checkdate<=$end; $checkdate -=(60 * 60 * 24)) { if ( date('N', $checkdate) == 5 ) { $link = date('m-d-y', $date); // 05-24-13 } } echo $link;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
Branch analysis from position: 18
filename:       /in/leUmC
function name:  (null)
number of ops:  23
compiled vars:  !0 = $start, !1 = $end, !2 = $checkdate, !3 = $link, !4 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $5      
          2        ASSIGN                                                   !0, $5
    6     3        SUB                                              ~7      !0, 604800
          4        ASSIGN                                                   !1, ~7
    8     5        ASSIGN                                                   !2, !0
          6      > JMP                                                      ->19
   10     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'N'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $10     
         11        IS_EQUAL                                                 $10, 5
         12      > JMPZ                                                     ~11, ->18
   12    13    >   INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'm-d-y'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
    8    18    >   ASSIGN_OP                                     2          !2, 86400
         19    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         20      > JMPNZ                                                    ~15, ->7
   17    21    >   ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.7 ms | 1395 KiB | 17 Q