3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start=strtotime('10:00'); $end=strtotime('21:30'); for ($halfhour=$start;$halfhour<=$end;$halfhour=$halfhour+30*60) { printf('<option value="%s">%s</option>',date('H:i',$halfhour),date('g:i a',$halfhour)); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
Branch analysis from position: 10
filename:       /in/fePeQ
function name:  (null)
number of ops:  28
compiled vars:  !0 = $start, !1 = $end, !2 = $halfhour
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '10%3A00'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '21%3A30'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        ASSIGN                                                   !2, !0
          9      > JMP                                                      ->25
    6    10    >   INIT_FCALL                                               'printf'
         11        SEND_VAL                                                 '%3Coption+value%3D%22%25s%22%3E%25s%3C%2Foption%3E'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'H%3Ai'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'g%3Ai+a'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
    5    23        ADD                                              ~11     !2, 1800
         24        ASSIGN                                                   !2, ~11
         25    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         26      > JMPNZ                                                    ~13, ->10
    9    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.6 ms | 1388 KiB | 19 Q