3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); for ($i =0; $i <= 11;$i++) { echo $date->sub(new DateInterval('P'.$i.'M'))->format('F'). "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
filename:       /in/6SHT3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $date, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              'now'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->20
    4     6    >   INIT_METHOD_CALL                                         !0, 'sub'
          7        NEW                                              $6      'DateInterval'
          8        CONCAT                                           ~7      'P', !1
          9        CONCAT                                           ~8      ~7, 'M'
         10        SEND_VAL_EX                                              ~8
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $6
         13        DO_FCALL                                      0  $10     
         14        INIT_METHOD_CALL                                         $10, 'format'
         15        SEND_VAL_EX                                              'F'
         16        DO_FCALL                                      0  $11     
         17        CONCAT                                           ~12     $11, '%0A'
         18        ECHO                                                     ~12
    3    19        PRE_INC                                                  !1
         20    >   IS_SMALLER_OR_EQUAL                                      !1, 11
         21      > JMPNZ                                                    ~14, ->6
    5    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1385 KiB | 13 Q