3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m= date("m"); $de= date("d"); $y= date("Y"); $svnumber=array(); for($i=0; $i<=6; $i++){ $date=date('Y-m',mktime(0,0,0,($m-$i),$y)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 15
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 15
Branch analysis from position: 31
Branch analysis from position: 15
filename:       /in/mWiDl
function name:  (null)
number of ops:  32
compiled vars:  !0 = $m, !1 = $de, !2 = $y, !3 = $svnumber, !4 = $i, !5 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'd'
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !1, $8
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y'
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
    6    12        ASSIGN                                                   !3, <array>
    8    13        ASSIGN                                                   !4, 0
         14      > JMP                                                      ->29
    9    15    >   INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m'
         17        INIT_FCALL                                               'mktime'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 0
         21        SUB                                              ~14     !0, !4
         22        SEND_VAL                                                 ~14
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $15     
         25        SEND_VAR                                                 $15
         26        DO_ICALL                                         $16     
         27        ASSIGN                                                   !5, $16
    8    28        PRE_INC                                                  !4
         29    >   IS_SMALLER_OR_EQUAL                                      !4, 6
         30      > JMPNZ                                                    ~19, ->15
   10    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.25 ms | 1396 KiB | 17 Q