3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2013-02-01'); $end = new DateTime('2013-02-17'); $interval = new DateInterval('P1D'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { if ($dt->format("l") !== 'Sunday') { echo $dt->format("l Y-m-d") . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 31
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 30
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 30
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/IsgEr
function name:  (null)
number of ops:  33
compiled vars:  !0 = $start, !1 = $end, !2 = $interval, !3 = $period, !4 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      'DateTime'
          1        SEND_VAL_EX                                              '2013-02-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    4     4        NEW                                              $8      'DateTime'
          5        SEND_VAL_EX                                              '2013-02-17'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $8
    5     8        NEW                                              $11     'DateInterval'
          9        SEND_VAL_EX                                              'P1D'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $11
    6    12        NEW                                              $14     'DatePeriod'
         13        SEND_VAR_EX                                              !0
         14        SEND_VAR_EX                                              !2
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !3, $14
    8    18      > FE_RESET_R                                       $17     !3, ->31
         19    > > FE_FETCH_R                                               $17, !4, ->31
   10    20    >   INIT_METHOD_CALL                                         !4, 'format'
         21        SEND_VAL_EX                                              'l'
         22        DO_FCALL                                      0  $18     
         23        IS_NOT_IDENTICAL                                         $18, 'Sunday'
         24      > JMPZ                                                     ~19, ->30
   12    25    >   INIT_METHOD_CALL                                         !4, 'format'
         26        SEND_VAL_EX                                              'l+Y-m-d'
         27        DO_FCALL                                      0  $20     
         28        CONCAT                                           ~21     $20, '%0A'
         29        ECHO                                                     ~21
    8    30    > > JMP                                                      ->19
         31    >   FE_FREE                                                  $17
   14    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152 ms | 1395 KiB | 13 Q