3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); for ( $time = new DateTime('2013-11-01 00:00:00'), $end = new DateTime('2013-11-05 00:00:00'); $time <= $end; $time = $time->add(new DateTimeInterval('P1D')) ) { var_dump($time->format('Y-m-d')); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 12
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 12
Branch analysis from position: 27
Branch analysis from position: 12
filename:       /in/uvQR4
function name:  (null)
number of ops:  28
compiled vars:  !0 = $time, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FLos_Angeles'
          2        DO_ICALL                                                 
    6     3        NEW                                              $3      'DateTime'
          4        SEND_VAL_EX                                              '2013-11-01+00%3A00%3A00'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
          7        NEW                                              $6      'DateTime'
          8        SEND_VAL_EX                                              '2013-11-05+00%3A00%3A00'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
         11      > JMP                                                      ->25
   10    12    >   INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              'Y-m-d'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
    8    18        INIT_METHOD_CALL                                         !0, 'add'
         19        NEW                                              $11     'DateTimeInterval'
         20        SEND_VAL_EX                                              'P1D'
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $11
         23        DO_FCALL                                      0  $13     
         24        ASSIGN                                                   !0, $13
    7    25    >   IS_SMALLER_OR_EQUAL                                      !0, !1
         26      > JMPNZ                                                    ~15, ->12
   11    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.98 ms | 1396 KiB | 17 Q