3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('-12 Week'); $end = new DateTime(today); while ($begin <= $end) { echo $begin->format('M'), "\n"; $begin->modify('first day of next month'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/2F4pS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $begin, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '-12+Week'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        NEW                                              $5      'DateTime'
          5        FETCH_CONSTANT                                   ~6      'today'
          6        SEND_VAL_EX                                              ~6
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    5     9      > JMP                                                      ->18
    6    10    >   INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'M'
         12        DO_FCALL                                      0  $9      
         13        ECHO                                                     $9
         14        ECHO                                                     '%0A'
    7    15        INIT_METHOD_CALL                                         !0, 'modify'
         16        SEND_VAL_EX                                              'first+day+of+next+month'
         17        DO_FCALL                                      0          
    5    18    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         19      > JMPNZ                                                    ~11, ->10
    8    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.48 ms | 1393 KiB | 13 Q