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)) { //echo date('N', $checkdate); if ( date('N', $checkdate) == "5" ) { $link = date('m-d-y', $checkdate); // 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/U1k1f
function name:  (null)
number of ops:  23
compiled vars:  !0 = $start, !1 = $end, !2 = $checkdate, !3 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    6     3        SUB                                              ~6      !0, 604800
          4        ASSIGN                                                   !1, ~6
    8     5        ASSIGN                                                   !2, !0
          6      > JMP                                                      ->19
   11     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'N'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        IS_EQUAL                                                 $9, '5'
         12      > JMPZ                                                     ~10, ->18
   13    13    >   INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'm-d-y'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !3, $11
    8    18    >   ASSIGN_OP                                     2          !2, 86400
         19    >   IS_SMALLER_OR_EQUAL                                      !1, !2
         20      > JMPNZ                                                    ~14, ->7
   18    21    >   ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1395 KiB | 17 Q