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', $date); // 05-24-13 } } echo $link;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
Branch analysis from position: 23
filename:       /in/hL5a6
function name:  (null)
number of ops:  28
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                                                      ->24
   10     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'N'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $10     
         11        ECHO                                                     $10
   11    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'N'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $11     
         16        IS_EQUAL                                                 $11, '5'
         17      > JMPZ                                                     ~12, ->23
   13    18    >   INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'm-d-y'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !3, $13
    8    23    >   ASSIGN_OP                                     2          !2, 86400
         24    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         25      > JMPNZ                                                    ~16, ->7
   18    26    >   ECHO                                                     !3
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1396 KiB | 17 Q