3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdts = array(); for($i = ltrim(date('H'), '0'); $i <= ltrim(date('H', time() + 14400), '0') * 2; $i++) { for ($j = 15; $j <= 45; $j += 15) { if ($j > ltrim(date('i'), '0') && ltrim(date('H'), '0') == $i) { $date = date("H.i", strtotime("$i:$j")); $value = $date."h"; $pdts[$value] = $date; } } if (ltrim(date('i'), '0') != 0 && ltrim(date('H'), '0') != $i) { $date = date("H.i", strtotime("$i:00")); $value = $date."h"; $pdts[$value] = $date; } for ($k = 15; $k <= 45; $k += 15) { if (ltrim(date('H'), '0') != $i) { $date = date("H.i", strtotime("$i:$k")); $value = $date . "h"; $pdts[$value] = $date; } } } print_r(date('H'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 112
Branch analysis from position: 112
2 jumps found. (Code = 44) Position 1 = 126, Position 2 = 10
Branch analysis from position: 126
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 12
Branch analysis from position: 49
2 jumps found. (Code = 46) Position 1 = 58, Position 2 = 67
Branch analysis from position: 58
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 82
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 109
Branch analysis from position: 109
2 jumps found. (Code = 44) Position 1 = 111, Position 2 = 84
Branch analysis from position: 111
2 jumps found. (Code = 44) Position 1 = 126, Position 2 = 10
Branch analysis from position: 126
Branch analysis from position: 10
Branch analysis from position: 84
2 jumps found. (Code = 43) Position 1 = 93, Position 2 = 108
Branch analysis from position: 93
2 jumps found. (Code = 44) Position 1 = 111, Position 2 = 84
Branch analysis from position: 111
Branch analysis from position: 84
Branch analysis from position: 108
Branch analysis from position: 82
Branch analysis from position: 67
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 30
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 46
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 12
Branch analysis from position: 49
Branch analysis from position: 12
Branch analysis from position: 46
Branch analysis from position: 30
filename:       /in/8cYfu
function name:  (null)
number of ops:  133
compiled vars:  !0 = $pdts, !1 = $i, !2 = $j, !3 = $date, !4 = $value, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'ltrim'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'H'
          4        DO_ICALL                                         $7      
          5        SEND_VAR                                                 $7
          6        SEND_VAL                                                 '0'
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !1, $8
          9      > JMP                                                      ->112
    4    10    >   ASSIGN                                                   !2, 15
         11      > JMP                                                      ->47
    5    12    >   INIT_FCALL                                               'ltrim'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'i'
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        SEND_VAL                                                 '0'
         18        DO_ICALL                                         $12     
         19        IS_SMALLER                                       ~13     $12, !2
         20      > JMPZ_EX                                          ~13     ~13, ->30
         21    >   INIT_FCALL                                               'ltrim'
         22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'H'
         24        DO_ICALL                                         $14     
         25        SEND_VAR                                                 $14
         26        SEND_VAL                                                 '0'
         27        DO_ICALL                                         $15     
         28        IS_EQUAL                                         ~16     !1, $15
         29        BOOL                                             ~13     ~16
         30    > > JMPZ                                                     ~13, ->46
    6    31    >   INIT_FCALL                                               'date'
         32        SEND_VAL                                                 'H.i'
         33        INIT_FCALL                                               'strtotime'
         34        ROPE_INIT                                     3  ~18     !1
         35        ROPE_ADD                                      1  ~18     ~18, '%3A'
         36        ROPE_END                                      2  ~17     ~18, !2
         37        SEND_VAL                                                 ~17
         38        DO_ICALL                                         $20     
         39        SEND_VAR                                                 $20
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !3, $21
    7    42        CONCAT                                           ~23     !3, 'h'
         43        ASSIGN                                                   !4, ~23
    8    44        ASSIGN_DIM                                               !0, !4
         45        OP_DATA                                                  !3
    4    46    >   ASSIGN_OP                                     1          !2, 15
         47    >   IS_SMALLER_OR_EQUAL                                      !2, 45
         48      > JMPNZ                                                    ~27, ->12
   11    49    >   INIT_FCALL                                               'ltrim'
         50        INIT_FCALL                                               'date'
         51        SEND_VAL                                                 'i'
         52        DO_ICALL                                         $28     
         53        SEND_VAR                                                 $28
         54        SEND_VAL                                                 '0'
         55        DO_ICALL                                         $29     
         56        IS_NOT_EQUAL                                     ~30     $29, 0
         57      > JMPZ_EX                                          ~30     ~30, ->67
         58    >   INIT_FCALL                                               'ltrim'
         59        INIT_FCALL                                               'date'
         60        SEND_VAL                                                 'H'
         61        DO_ICALL                                         $31     
         62        SEND_VAR                                                 $31
         63        SEND_VAL                                                 '0'
         64        DO_ICALL                                         $32     
         65        IS_NOT_EQUAL                                     ~33     !1, $32
         66        BOOL                                             ~30     ~33
         67    > > JMPZ                                                     ~30, ->82
   12    68    >   INIT_FCALL                                               'date'
         69        SEND_VAL                                                 'H.i'
         70        INIT_FCALL                                               'strtotime'
         71        NOP                                                      
         72        FAST_CONCAT                                      ~34     !1, '%3A00'
         73        SEND_VAL                                                 ~34
         74        DO_ICALL                                         $35     
         75        SEND_VAR                                                 $35
         76        DO_ICALL                                         $36     
         77        ASSIGN                                                   !3, $36
   13    78        CONCAT                                           ~38     !3, 'h'
         79        ASSIGN                                                   !4, ~38
   14    80        ASSIGN_DIM                                               !0, !4
         81        OP_DATA                                                  !3
   16    82    >   ASSIGN                                                   !5, 15
         83      > JMP                                                      ->109
   17    84    >   INIT_FCALL                                               'ltrim'
         85        INIT_FCALL                                               'date'
         86        SEND_VAL                                                 'H'
         87        DO_ICALL                                         $42     
         88        SEND_VAR                                                 $42
         89        SEND_VAL                                                 '0'
         90        DO_ICALL                                         $43     
         91        IS_NOT_EQUAL                                             !1, $43
         92      > JMPZ                                                     ~44, ->108
   18    93    >   INIT_FCALL                                               'date'
         94        SEND_VAL                                                 'H.i'
         95        INIT_FCALL                                               'strtotime'
         96        ROPE_INIT                                     3  ~46     !1
         97        ROPE_ADD                                      1  ~46     ~46, '%3A'
         98        ROPE_END                                      2  ~45     ~46, !5
         99        SEND_VAL                                                 ~45
        100        DO_ICALL                                         $48     
        101        SEND_VAR                                                 $48
        102        DO_ICALL                                         $49     
        103        ASSIGN                                                   !3, $49
   19   104        CONCAT                                           ~51     !3, 'h'
        105        ASSIGN                                                   !4, ~51
   20   106        ASSIGN_DIM                                               !0, !4
        107        OP_DATA                                                  !3
   16   108    >   ASSIGN_OP                                     1          !5, 15
        109    >   IS_SMALLER_OR_EQUAL                                      !5, 45
        110      > JMPNZ                                                    ~55, ->84
    3   111    >   PRE_INC                                                  !1
        112    >   INIT_FCALL                                               'ltrim'
        113        INIT_FCALL                                               'date'
        114        SEND_VAL                                                 'H'
        115        INIT_FCALL                                               'time'
        116        DO_ICALL                                         $57     
        117        ADD                                              ~58     $57, 14400
        118        SEND_VAL                                                 ~58
        119        DO_ICALL                                         $59     
        120        SEND_VAR                                                 $59
        121        SEND_VAL                                                 '0'
        122        DO_ICALL                                         $60     
        123        MUL                                              ~61     $60, 2
        124        IS_SMALLER_OR_EQUAL                                      !1, ~61
        125      > JMPNZ                                                    ~62, ->10
   24   126    >   INIT_FCALL                                               'print_r'
        127        INIT_FCALL                                               'date'
        128        SEND_VAL                                                 'H'
        129        DO_ICALL                                         $63     
        130        SEND_VAR                                                 $63
        131        DO_ICALL                                                 
        132      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.24 ms | 1408 KiB | 23 Q