3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1400 KiB | 19 Q