3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = "2014-06-01"; $endDate = "2014-06-30"; $startDate = strtotime($startDate); $endDate = strtotime($endDate); for($i = strtotime('Monday', $startDate); $i <= $endDate; $i = strtotime('+1 week', $i)) echo date('l Y-m-d', $i)."<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 16
Branch analysis from position: 29
Branch analysis from position: 16
filename:       /in/0N5HN
function name:  (null)
number of ops:  30
compiled vars:  !0 = $startDate, !1 = $endDate, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-06-01'
    3     1        ASSIGN                                                   !1, '2014-06-30'
    5     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !0, $5
    6     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
    8    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'Monday'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
         15      > JMP                                                      ->27
    9    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'l+Y-m-d'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     $11, '%3Cbr%3E'
         21        ECHO                                                     ~12
    8    22        INIT_FCALL                                               'strtotime'
         23        SEND_VAL                                                 '%2B1+week'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !2, $13
         27    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         28      > JMPNZ                                                    ~15, ->16
    9    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.83 ms | 1396 KiB | 17 Q