3v4l.org

run code in 500+ PHP versions simultaneously
<?php $months = array(); $num = date("n",strtotime('2016-05-17 16:41:51')); array_push($months, date("F", strtotime('2016-05-17 16:41:51'))); for($i = ($num + 1); $i <= 12; $i++){ $dateObj = DateTime::createFromFormat('!m', $i); array_push($months, $dateObj->format('F')); } print_r($months);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 23
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 23
Branch analysis from position: 38
Branch analysis from position: 23
filename:       /in/eONQm
function name:  (null)
number of ops:  42
compiled vars:  !0 = $months, !1 = $num, !2 = $i, !3 = $dateObj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'n'
          3        INIT_FCALL                                                   'strtotime'
          4        SEND_VAL                                                     '2016-05-17+16%3A41%3A51'
          5        DO_ICALL                                             $5      
          6        SEND_VAR                                                     $5
          7        DO_ICALL                                             $6      
          8        ASSIGN                                                       !1, $6
    4     9        INIT_FCALL                                                   'array_push'
         10        SEND_REF                                                     !0
         11        INIT_FCALL                                                   'date'
         12        SEND_VAL                                                     'F'
         13        INIT_FCALL                                                   'strtotime'
         14        SEND_VAL                                                     '2016-05-17+16%3A41%3A51'
         15        DO_ICALL                                             $8      
         16        SEND_VAR                                                     $8
         17        DO_ICALL                                             $9      
         18        SEND_VAR                                                     $9
         19        DO_ICALL                                                     
    6    20        ADD                                                  ~11     !1, 1
         21        ASSIGN                                                       !2, ~11
         22      > JMP                                                          ->36
    7    23    >   INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
         24        SEND_VAL                                                     '%21m'
         25        SEND_VAR                                                     !2
         26        DO_FCALL                                          0  $13     
         27        ASSIGN                                                       !3, $13
    8    28        INIT_FCALL                                                   'array_push'
         29        SEND_REF                                                     !0
         30        INIT_METHOD_CALL                                             !3, 'format'
         31        SEND_VAL_EX                                                  'F'
         32        DO_FCALL                                          0  $15     
         33        SEND_VAR                                                     $15
         34        DO_ICALL                                                     
    6    35        PRE_INC                                                      !2
         36    >   IS_SMALLER_OR_EQUAL                                          !2, 12
         37      > JMPNZ                                                        ~18, ->23
   11    38    >   INIT_FCALL                                                   'print_r'
         39        SEND_VAR                                                     !0
         40        DO_ICALL                                                     
         41      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
229.08 ms | 2827 KiB | 17 Q