3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("America/Halifax"); $_hour = idate('H'); $_day = idate('d'); $temp = ($_hour + 7) % 24; if ((!($_day % 2) && $_hour >= 17) || ($_day %2 && $_hour < 17)) { $temp = 20 + (($_hour + 7) % 24); } else { $temp = 44 + (($_hour + 7) % 24); if ($temp >= 60) { $temp = 60; } } echo $temp, "&deg" ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 31
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 38
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 24
Branch analysis from position: 25
Branch analysis from position: 19
filename:       /in/LQ1Vb
function name:  (null)
number of ops:  41
compiled vars:  !0 = $_hour, !1 = $_day, !2 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FHalifax'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'idate'
          4        SEND_VAL                                                 'H'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'idate'
          8        SEND_VAL                                                 'd'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        ADD                                              ~8      !0, 7
         12        MOD                                              ~9      ~8, 24
         13        ASSIGN                                                   !2, ~9
    6    14        MOD                                              ~11     !1, 2
         15        BOOL_NOT                                         ~12     ~11
         16      > JMPZ_EX                                          ~12     ~12, ->19
         17    >   IS_SMALLER_OR_EQUAL                              ~13     17, !0
         18        BOOL                                             ~12     ~13
         19    > > JMPNZ_EX                                         ~12     ~12, ->25
         20    >   MOD                                              ~14     !1, 2
         21      > JMPZ_EX                                          ~14     ~14, ->24
         22    >   IS_SMALLER                                       ~15     !0, 17
         23        BOOL                                             ~14     ~15
         24    >   BOOL                                             ~12     ~14
         25    > > JMPZ                                                     ~12, ->31
    7    26    >   ADD                                              ~16     !0, 7
         27        MOD                                              ~17     ~16, 24
         28        ADD                                              ~18     20, ~17
         29        ASSIGN                                                   !2, ~18
         30      > JMP                                                      ->38
    9    31    >   ADD                                              ~20     !0, 7
         32        MOD                                              ~21     ~20, 24
         33        ADD                                              ~22     44, ~21
         34        ASSIGN                                                   !2, ~22
   10    35        IS_SMALLER_OR_EQUAL                                      60, !2
         36      > JMPZ                                                     ~24, ->38
   11    37    >   ASSIGN                                                   !2, 60
   14    38    >   ECHO                                                     !2
         39        ECHO                                                     '%26deg'
   15    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.37 ms | 1400 KiB | 17 Q