3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = new DateTIme("january"); for ($i = 1; $i <= 12; $i++) { echo $date->format("F")."\n"; $date->modify("+1 months"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/aeZIg
function name:  (null)
number of ops:  18
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                                                  'january'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        ASSIGN                                                       !1, 1
          5      > JMP                                                          ->15
    5     6    >   INIT_METHOD_CALL                                             !0, 'format'
          7        SEND_VAL_EX                                                  'F'
          8        DO_FCALL                                          0  $6      
          9        CONCAT                                               ~7      $6, '%0A'
         10        ECHO                                                         ~7
    6    11        INIT_METHOD_CALL                                             !0, 'modify'
         12        SEND_VAL_EX                                                  '%2B1+months'
         13        DO_FCALL                                          0          
    4    14        PRE_INC                                                      !1
         15    >   IS_SMALLER_OR_EQUAL                                          !1, 12
         16      > JMPNZ                                                        ~10, ->6
    7    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
218.59 ms | 2000 KiB | 8 Q