3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(strtotime($initime),strtotime($endtime),30*60); foreach($range as $time){ echo '<option value="'.$time.'">'.date("H:i",$time).'</option>'."\r\n"; } $range = range(strtotime("today 00:15"),strtotime("today 04:00"),15*60); foreach($range as $time){ echo '<option value="'.$time.'">'.date("H:i",$time).'</option>'."\r\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 25
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 25
2 jumps found. (Code = 77) Position 1 = 39, Position 2 = 51
Branch analysis from position: 39
2 jumps found. (Code = 78) Position 1 = 40, Position 2 = 51
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 51
Branch analysis from position: 25
filename:       /in/KdQSK
function name:  (null)
number of ops:  53
compiled vars:  !0 = $range, !1 = $initime, !2 = $endtime, !3 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !1
          3        DO_ICALL                                         $4      
          4        SEND_VAR                                                 $4
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 1800
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
    3    12      > FE_RESET_R                                       $8      !0, ->25
         13    > > FE_FETCH_R                                               $8, !3, ->25
    4    14    >   CONCAT                                           ~9      '%3Coption+value%3D%22', !3
         15        CONCAT                                           ~10     ~9, '%22%3E'
         16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'H%3Ai'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $11     
         20        CONCAT                                           ~12     ~10, $11
         21        CONCAT                                           ~13     ~12, '%3C%2Foption%3E'
         22        CONCAT                                           ~14     ~13, '%0D%0A'
         23        ECHO                                                     ~14
    3    24      > JMP                                                      ->13
         25    >   FE_FREE                                                  $8
    7    26        INIT_FCALL                                               'range'
         27        INIT_FCALL                                               'strtotime'
         28        SEND_VAL                                                 'today+00%3A15'
         29        DO_ICALL                                         $15     
         30        SEND_VAR                                                 $15
         31        INIT_FCALL                                               'strtotime'
         32        SEND_VAL                                                 'today+04%3A00'
         33        DO_ICALL                                         $16     
         34        SEND_VAR                                                 $16
         35        SEND_VAL                                                 900
         36        DO_ICALL                                         $17     
         37        ASSIGN                                                   !0, $17
    8    38      > FE_RESET_R                                       $19     !0, ->51
         39    > > FE_FETCH_R                                               $19, !3, ->51
    9    40    >   CONCAT                                           ~20     '%3Coption+value%3D%22', !3
         41        CONCAT                                           ~21     ~20, '%22%3E'
         42        INIT_FCALL                                               'date'
         43        SEND_VAL                                                 'H%3Ai'
         44        SEND_VAR                                                 !3
         45        DO_ICALL                                         $22     
         46        CONCAT                                           ~23     ~21, $22
         47        CONCAT                                           ~24     ~23, '%3C%2Foption%3E'
         48        CONCAT                                           ~25     ~24, '%0D%0A'
         49        ECHO                                                     ~25
    8    50      > JMP                                                      ->39
         51    >   FE_FREE                                                  $19
   10    52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.73 ms | 1400 KiB | 19 Q