3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period2 = new DatePeriod( new DateTime('-3 months'), DateInterval::createFromDateString('first day of next month'), new DateTime('NOW') ); $months = array(); $day = array(); foreach ($period2 as $p) $day[] = strftime('%A', $p->getTimestamp()); echo $day; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 28
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 28
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/oZgHX
function name:  (null)
number of ops:  31
compiled vars:  !0 = $period2, !1 = $months, !2 = $day, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DatePeriod'
    4     1        NEW                                              $5      'DateTime'
          2        SEND_VAL_EX                                              '-3+months'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $5
    5     5        INIT_STATIC_METHOD_CALL                                  'DateInterval', 'createFromDateString'
          6        SEND_VAL                                                 'first+day+of+next+month'
          7        DO_FCALL                                      0  $7      
          8        SEND_VAR_NO_REF_EX                                       $7
    6     9        NEW                                              $8      'DateTime'
         10        SEND_VAL_EX                                              'NOW'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $8
         13        DO_FCALL                                      0          
    3    14        ASSIGN                                                   !0, $4
    9    15        ASSIGN                                                   !1, <array>
   11    16        ASSIGN                                                   !2, <array>
   13    17      > FE_RESET_R                                       $14     !0, ->28
         18    > > FE_FETCH_R                                               $14, !3, ->28
   14    19    >   INIT_FCALL                                               'strftime'
         20        SEND_VAL                                                 '%25A'
         21        INIT_METHOD_CALL                                         !3, 'getTimestamp'
         22        DO_FCALL                                      0  $16     
         23        SEND_VAR                                                 $16
         24        DO_ICALL                                         $17     
         25        ASSIGN_DIM                                               !2
         26        OP_DATA                                                  $17
   13    27      > JMP                                                      ->18
         28    >   FE_FREE                                                  $14
   16    29        ECHO                                                     !2
   18    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.58 ms | 1396 KiB | 15 Q