3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "0:00"; $end = "11:00"; $tStart = strtotime($start); $tEnd = strtotime($end); $tNow = $tStart; while($tNow <= $tEnd){ echo date("H:i",$tNow)."\n"; $tNow = strtotime('+30 minutes',$tNow); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 12
Branch analysis from position: 25
Branch analysis from position: 12
filename:       /in/3kKZA
function name:  (null)
number of ops:  26
compiled vars:  !0 = $start, !1 = $end, !2 = $tStart, !3 = $tEnd, !4 = $tNow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '0%3A00'
    2     1        ASSIGN                                                   !1, '11%3A00'
    4     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    5     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
    6    10        ASSIGN                                                   !4, !2
    8    11      > JMP                                                      ->23
    9    12    >   INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'H%3Ai'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                         $12     
         16        CONCAT                                           ~13     $12, '%0A'
         17        ECHO                                                     ~13
   10    18        INIT_FCALL                                               'strtotime'
         19        SEND_VAL                                                 '%2B30+minutes'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !4, $14
    8    23    >   IS_SMALLER_OR_EQUAL                                      !4, !3
         24      > JMPNZ                                                    ~16, ->12
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.9 ms | 1395 KiB | 17 Q