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 ?>
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/9shAk
function name:  (null)
number of ops:  40
compiled vars:  !0 = $_hour, !1 = $_day, !2 = $temp, !3 = $hour
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                                         $5      
          6        ASSIGN                                                   !0, $5
    4     7        INIT_FCALL                                               'idate'
          8        SEND_VAL                                                 'd'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    5    11        ADD                                              ~9      !0, 7
         12        MOD                                              ~10     ~9, 24
         13        ASSIGN                                                   !2, ~10
    6    14        MOD                                              ~12     !1, 2
         15        BOOL_NOT                                         ~13     ~12
         16      > JMPZ_EX                                          ~13     ~13, ->19
         17    >   IS_SMALLER_OR_EQUAL                              ~14     17, !0
         18        BOOL                                             ~13     ~14
         19    > > JMPNZ_EX                                         ~13     ~13, ->25
         20    >   MOD                                              ~15     !1, 2
         21      > JMPZ_EX                                          ~15     ~15, ->24
         22    >   IS_SMALLER                                       ~16     !0, 17
         23        BOOL                                             ~15     ~16
         24    >   BOOL                                             ~13     ~15
         25    > > JMPZ                                                     ~13, ->31
    7    26    >   ADD                                              ~17     !0, 7
         27        MOD                                              ~18     ~17, 24
         28        ADD                                              ~19     20, ~18
         29        ASSIGN                                                   !2, ~19
         30      > JMP                                                      ->38
    9    31    >   ADD                                              ~21     !3, 7
         32        MOD                                              ~22     ~21, 24
         33        ADD                                              ~23     44, ~22
         34        ASSIGN                                                   !2, ~23
   10    35        IS_SMALLER_OR_EQUAL                                      60, !2
         36      > JMPZ                                                     ~25, ->38
   11    37    >   ASSIGN                                                   !2, 60
   15    38    >   ECHO                                                     !2
   16    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.97 ms | 1400 KiB | 17 Q