3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $now = new \DateTime(); $interval = new \DateInterval('P1M'); $period = new\DatePeriod($now->add($interval), $interval, 4); foreach($period as $date){ echo $date->format('F') . "<br/>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/ZMgiM
function name:  (null)
number of ops:  26
compiled vars:  !0 = $now, !1 = $interval, !2 = $period, !3 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $4      'DateTime'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $4
    5     3        NEW                                                  $7      'DateInterval'
          4        SEND_VAL_EX                                                  'P1M'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !1, $7
    6     7        INIT_FCALL_BY_NAME                                           'new%5CDatePeriod'
          8        INIT_METHOD_CALL                                             !0, 'add'
          9        SEND_VAR_EX                                                  !1
         10        DO_FCALL                                          0  $10     
         11        SEND_VAR_NO_REF_EX                                           $10
         12        SEND_VAR_EX                                                  !1
         13        SEND_VAL_EX                                                  4
         14        DO_FCALL                                          0  $11     
         15        ASSIGN                                                       !2, $11
    8    16      > FE_RESET_R                                           $13     !2, ->24
         17    > > FE_FETCH_R                                                   $13, !3, ->24
    9    18    >   INIT_METHOD_CALL                                             !3, 'format'
         19        SEND_VAL_EX                                                  'F'
         20        DO_FCALL                                          0  $14     
         21        CONCAT                                               ~15     $14, '%3Cbr%2F%3E%0A'
         22        ECHO                                                         ~15
    8    23      > JMP                                                          ->17
         24    >   FE_FREE                                                      $13
   10    25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.75 ms | 2742 KiB | 8 Q