3v4l.org

run code in 300+ PHP versions simultaneously
<?php // all fridays from startingdate till NOW $startingDate = strtotime('2013-01-01'); // lets test from start of 2013 $start = time(); $end = $startingDate; for($checkdate=$start;$checkdate>=$end; $checkdate -=(60 * 60 * 24)) { if ( date('N', $checkdate) == "5" ) { echo '<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report '.date('m-d-y', $checkdate).'.pdf">Market Reports</a>'; break; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
Branch analysis from position: 10
filename:       /in/TkHQk
function name:  (null)
number of ops:  28
compiled vars:  !0 = $startingDate, !1 = $start, !2 = $end, !3 = $checkdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2013-01-01'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    7     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    8     7        ASSIGN                                                   !2, !0
   10     8        ASSIGN                                                   !3, !1
          9      > JMP                                                      ->25
   12    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'N'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $10     
         14        IS_EQUAL                                                 $10, '5'
         15      > JMPZ                                                     ~11, ->24
   14    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'm-d-y'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     '%3Ca+href%3D%22https%3A%2F%2Fwww.extranet.frostyacres.com%2Fportal_resources%2F1%2FMarket+Report+', $12
         21        CONCAT                                           ~14     ~13, '.pdf%22%3EMarket+Reports%3C%2Fa%3E'
         22        ECHO                                                     ~14
   15    23      > JMP                                                      ->27
   10    24    >   ASSIGN_OP                                     2          !3, 86400
         25    >   IS_SMALLER_OR_EQUAL                                      !2, !3
         26      > JMPNZ                                                    ~16, ->10
   19    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.76 ms | 1396 KiB | 19 Q