3v4l.org

run code in 500+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'it_IT.UTF-8'); $period = new DatePeriod(new DateTime('2020-04-07'),new DateInterval('P1D'),new DateTime('2020-04-18')); foreach ($period as $key => $value) { echo strftime("%A", $value->getTimestamp()).PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 31
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/sYirG
function name:  (null)
number of ops:  33
compiled vars:  !0 = $period, !1 = $value, !2 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'setlocale'
          1        SEND_VAL                                                     2
          2        SEND_VAL                                                     'it_IT.UTF-8'
          3        DO_ICALL                                                     
    3     4        NEW                                                  $4      'DatePeriod'
          5        NEW                                                  $5      'DateTime'
          6        SEND_VAL_EX                                                  '2020-04-07'
          7        DO_FCALL                                          0          
          8        SEND_VAR_NO_REF_EX                                           $5
          9        NEW                                                  $7      'DateInterval'
         10        SEND_VAL_EX                                                  'P1D'
         11        DO_FCALL                                          0          
         12        SEND_VAR_NO_REF_EX                                           $7
         13        NEW                                                  $9      'DateTime'
         14        SEND_VAL_EX                                                  '2020-04-18'
         15        DO_FCALL                                          0          
         16        SEND_VAR_NO_REF_EX                                           $9
         17        DO_FCALL                                          0          
         18        ASSIGN                                                       !0, $4
    4    19      > FE_RESET_R                                           $13     !0, ->31
         20    > > FE_FETCH_R                                           ~14     $13, !1, ->31
         21    >   ASSIGN                                                       !2, ~14
    5    22        INIT_FCALL                                                   'strftime'
         23        SEND_VAL                                                     '%25A'
         24        INIT_METHOD_CALL                                             !1, 'getTimestamp'
         25        DO_FCALL                                          0  $16     
         26        SEND_VAR                                                     $16
         27        DO_FCALL_BY_NAME                                             
         28        CONCAT                                               ~18     $17, '%0A'
         29        ECHO                                                         ~18
    4    30      > JMP                                                          ->20
         31    >   FE_FREE                                                      $13
    7    32      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
188.02 ms | 2267 KiB | 15 Q