3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array(); $timestamp = strtotime('-30 days'); for ($i = 0 ; $i <=30 ; $i++) { $dates[$i]= date('M j', $timestamp); $timestamp += 24 * 3600; }
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 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/BtfNc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dates, !1 = $timestamp, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 '-30+days'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->15
    6     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'M+j'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN_DIM                                               !0, !2
         12        OP_DATA                                                  $8
    7    13        ASSIGN_OP                                     1          !1, 86400
    5    14        PRE_INC                                                  !2
         15    >   IS_SMALLER_OR_EQUAL                                      !2, 30
         16      > JMPNZ                                                    ~11, ->7
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.83 ms | 1395 KiB | 18 Q