3v4l.org

run code in 500+ PHP versions simultaneously
<?php $slot_count = 5; $start = strtotime("08:00"); echo date("H:i:s", $start).'<br/>'; for( $i=0; $i<$slot_count; $i++ ) { $start = $start; $end_new = date("H:i:s", strtotime('+20 minutes', $start)); $start = strtotime($end_new); echo $end_new.'<br/>'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 13
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 13
Branch analysis from position: 32
Branch analysis from position: 13
filename:       /in/TYJ6a
function name:  (null)
number of ops:  33
compiled vars:  !0 = $slot_count, !1 = $start, !2 = $i, !3 = $end_new
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 5
    5     1        INIT_FCALL                                                   'strtotime'
          2        SEND_VAL                                                     '08%3A00'
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !1, $5
    6     5        INIT_FCALL                                                   'date'
          6        SEND_VAL                                                     'H%3Ai%3As'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                             $7      
          9        CONCAT                                               ~8      $7, '%3Cbr%2F%3E'
         10        ECHO                                                         ~8
    8    11        ASSIGN                                                       !2, 0
         12      > JMP                                                          ->30
   10    13    >   ASSIGN                                                       !1, !1
   11    14        INIT_FCALL                                                   'date'
         15        SEND_VAL                                                     'H%3Ai%3As'
         16        INIT_FCALL                                                   'strtotime'
         17        SEND_VAL                                                     '%2B20+minutes'
         18        SEND_VAR                                                     !1
         19        DO_ICALL                                             $11     
         20        SEND_VAR                                                     $11
         21        DO_ICALL                                             $12     
         22        ASSIGN                                                       !3, $12
   12    23        INIT_FCALL                                                   'strtotime'
         24        SEND_VAR                                                     !3
         25        DO_ICALL                                             $14     
         26        ASSIGN                                                       !1, $14
   14    27        CONCAT                                               ~16     !3, '%3Cbr%2F%3E'
         28        ECHO                                                         ~16
    8    29        PRE_INC                                                      !2
         30    >   IS_SMALLER                                                   !2, !0
         31      > JMPNZ                                                        ~18, ->13
   16    32    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.33 ms | 1868 KiB | 15 Q