3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sarting = "2015-06-01 00:00:00"; $store_date = []; $date = new DateTime($sarting); for ($i = 0; $i < 20; $i++) { $date->modify('+3 months'); $store_date[] = $date->format('Y-m-d'); } print_r($store_date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
Branch analysis from position: 8
filename:       /in/KZiH9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $sarting, !1 = $store_date, !2 = $date, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2015-06-01+00%3A00%3A00'
    3     1        ASSIGN                                                   !1, <array>
    4     2        NEW                                              $6      'DateTime'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $6
    6     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->17
    7     8    >   INIT_METHOD_CALL                                         !2, 'modify'
          9        SEND_VAL_EX                                              '%2B3+months'
         10        DO_FCALL                                      0          
    8    11        INIT_METHOD_CALL                                         !2, 'format'
         12        SEND_VAL_EX                                              'Y-m-d'
         13        DO_FCALL                                      0  $12     
         14        ASSIGN_DIM                                               !1
         15        OP_DATA                                                  $12
    6    16        PRE_INC                                                  !3
         17    >   IS_SMALLER                                               !3, 20
         18      > JMPNZ                                                    ~14, ->8
   11    19    >   INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.22 ms | 1010 KiB | 14 Q