3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Helsinki'); $it = strtotime('2013-10-08') + 7 * 24 * 3600; for($i=0; $i<=15; $i++) { echo date("Y-m-d h:i:s", $it + $i * 24 * 3600) . "\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 = 10
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 10
Branch analysis from position: 22
Branch analysis from position: 10
filename:       /in/i7jiY
function name:  (null)
number of ops:  23
compiled vars:  !0 = $it, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FHelsinki'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2013-10-08'
          5        DO_ICALL                                         $3      
          6        ADD                                              ~4      $3, 604800
          7        ASSIGN                                                   !0, ~4
    7     8        ASSIGN                                                   !1, 0
          9      > JMP                                                      ->20
    9    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         12        MUL                                              ~7      !1, 24
         13        MUL                                              ~8      ~7, 3600
         14        ADD                                              ~9      !0, ~8
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, '%0A'
         18        ECHO                                                     ~11
    7    19        PRE_INC                                                  !1
         20    >   IS_SMALLER_OR_EQUAL                                      !1, 15
         21      > JMPNZ                                                    ~13, ->10
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 1395 KiB | 19 Q