3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime("2014/03/31"); for ($i = 0; $i <= 9; $i++) { $date->modify("-1 month"); echo $date->format('F Y'); //populate select input }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/9ST0C
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2014%2F03%2F31'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->14
    5     6    >   INIT_METHOD_CALL                                         !0, 'modify'
          7        SEND_VAL_EX                                              '-1+month'
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'F+Y'
         11        DO_FCALL                                      0  $7      
         12        ECHO                                                     $7
    4    13        PRE_INC                                                  !1
         14    >   IS_SMALLER_OR_EQUAL                                      !1, 9
         15      > JMPNZ                                                    ~9, ->6
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.42 ms | 1393 KiB | 13 Q