3v4l.org

run code in 300+ PHP versions simultaneously
<?php If(date("N")>1){ $w = date("W")+2; }Else{ $w =date("W")+1; } $y = date("Y"); $d = date("Y\WWN", strtotime($y . "W" . $w . "2")); For($i=1; $i<7;$i++){ Echo date("Y-m-d", strtotime($d)+(86400*7)*$i) ."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 33
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 33
Branch analysis from position: 47
Branch analysis from position: 33
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
filename:       /in/SMaou
function name:  (null)
number of ops:  48
compiled vars:  !0 = $w, !1 = $y, !2 = $d, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'N'
          2        DO_ICALL                                         $4      
          3        IS_SMALLER                                               1, $4
          4      > JMPZ                                                     ~5, ->11
    4     5    >   INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'W'
          7        DO_ICALL                                         $6      
          8        ADD                                              ~7      $6, 2
          9        ASSIGN                                                   !0, ~7
    3    10      > JMP                                                      ->16
    6    11    >   INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'W'
         13        DO_ICALL                                         $9      
         14        ADD                                              ~10     $9, 1
         15        ASSIGN                                                   !0, ~10
    9    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y'
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !1, $12
   10    20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'Y%5CWWN'
         22        INIT_FCALL                                               'strtotime'
         23        CONCAT                                           ~14     !1, 'W'
         24        CONCAT                                           ~15     ~14, !0
         25        CONCAT                                           ~16     ~15, '2'
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                         $17     
         28        SEND_VAR                                                 $17
         29        DO_ICALL                                         $18     
         30        ASSIGN                                                   !2, $18
   12    31        ASSIGN                                                   !3, 1
         32      > JMP                                                      ->45
   13    33    >   INIT_FCALL                                               'date'
         34        SEND_VAL                                                 'Y-m-d'
         35        INIT_FCALL                                               'strtotime'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                         $21     
         38        MUL                                              ~22     !3, 604800
         39        ADD                                              ~23     $21, ~22
         40        SEND_VAL                                                 ~23
         41        DO_ICALL                                         $24     
         42        CONCAT                                           ~25     $24, '%0A'
         43        ECHO                                                     ~25
   12    44        PRE_INC                                                  !3
         45    >   IS_SMALLER                                               !3, 7
         46      > JMPNZ                                                    ~27, ->33
   14    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.41 ms | 1004 KiB | 15 Q