3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = '2014-08-29'; for ($i = 1; $i <= 7; $i++) { echo date('Y-m-d', strtotime($dt . "+{$i} days")); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/GqvcG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dt, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-08-29'
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->16
    5     3    >   INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d'
          5        INIT_FCALL                                               'strtotime'
          6        ROPE_INIT                                     3  ~5      '%2B'
          7        ROPE_ADD                                      1  ~5      ~5, !1
          8        ROPE_END                                      2  ~4      ~5, '+days'
          9        CONCAT                                           ~7      !0, ~4
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        ECHO                                                     $9
    4    15        PRE_INC                                                  !1
         16    >   IS_SMALLER_OR_EQUAL                                      !1, 7
         17      > JMPNZ                                                    ~11, ->3
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.23 ms | 1395 KiB | 17 Q