3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:00:00', new DateTimeZone('Europe/Berlin')); $end = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:30:00', new DateTimeZone('Europe/Berlin')); while($start < $end) { echo $start->format('H:i:s'), "\n"; $start->modify('+10 minutes'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
Branch analysis from position: 19
filename:       /in/kHOR6
function name:  (null)
number of ops:  30
compiled vars:  !0 = $start, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        SEND_VAL                                                 '2012-07-13+01%3A00%3A00'
          3        NEW                                              $2      'DateTimeZone'
          4        SEND_VAL_EX                                              'Europe%2FBerlin'
          5        DO_FCALL                                      0          
          6        SEND_VAR                                                 $2
          7        DO_FCALL                                      0  $4      
          8        ASSIGN                                                   !0, $4
    4     9        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        SEND_VAL                                                 '2012-07-13+01%3A30%3A00'
         12        NEW                                              $6      'DateTimeZone'
         13        SEND_VAL_EX                                              'Europe%2FBerlin'
         14        DO_FCALL                                      0          
         15        SEND_VAR                                                 $6
         16        DO_FCALL                                      0  $8      
         17        ASSIGN                                                   !1, $8
    5    18      > JMP                                                      ->27
    6    19    >   INIT_METHOD_CALL                                         !0, 'format'
         20        SEND_VAL_EX                                              'H%3Ai%3As'
         21        DO_FCALL                                      0  $10     
         22        ECHO                                                     $10
         23        ECHO                                                     '%0A'
    7    24        INIT_METHOD_CALL                                         !0, 'modify'
         25        SEND_VAL_EX                                              '%2B10+minutes'
         26        DO_FCALL                                      0          
    5    27    >   IS_SMALLER                                               !0, !1
         28      > JMPNZ                                                    ~12, ->19
    8    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.02 ms | 1395 KiB | 13 Q