3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startingDate = strtotime('2013-06-07'); $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>'; } }
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 = 10
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Branch analysis from position: 10
Branch analysis from position: 23
filename:       /in/dUnl6
function name:  (null)
number of ops:  27
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-06-07'
          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                                                      ->24
   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, ->23
   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
   10    23    >   ASSIGN_OP                                     2          !3, 86400
         24    >   IS_SMALLER_OR_EQUAL                                      !2, !3
         25      > JMPNZ                                                    ~16, ->10
   16    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.04 ms | 1396 KiB | 19 Q