3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($j = 1; $j <= 5; $j++) { echo date("F Y", strtotime(" -$j months")); }
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 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/8UaV9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->14
    3     2    >   INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'F+Y'
          4        INIT_FCALL                                               'strtotime'
          5        ROPE_INIT                                     3  ~3      '+-'
          6        ROPE_ADD                                      1  ~3      ~3, !0
          7        ROPE_END                                      2  ~2      ~3, '+months'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
    2    13        PRE_INC                                                  !0
         14    >   IS_SMALLER_OR_EQUAL                                      !0, 5
         15      > JMPNZ                                                    ~8, ->2
    4    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.3 ms | 1395 KiB | 17 Q