3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("America/Halifax"); $current_hour = ((idate('H') + 7) % 24); $current_day = idate('d'); if ($current_day % 2) { if ($current_hour > 16) { $temp = 60; } else { $temp = 44 + current_hour; } } else { $temp = 20 + current_hour; } echo $temp ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HPcPG
function name:  (null)
number of ops:  28
compiled vars:  !0 = $current_hour, !1 = $current_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        ADD                                              ~5      $4, 7
          7        MOD                                              ~6      ~5, 24
          8        ASSIGN                                                   !0, ~6
    4     9        INIT_FCALL                                               'idate'
         10        SEND_VAL                                                 'd'
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
    5    13        MOD                                              ~10     !1, 2
         14      > JMPZ                                                     ~10, ->23
    6    15    >   IS_SMALLER                                               16, !0
         16      > JMPZ                                                     ~11, ->19
    7    17    >   ASSIGN                                                   !2, 60
         18      > JMP                                                      ->22
    9    19    >   FETCH_CONSTANT                                   ~13     'current_hour'
         20        ADD                                              ~14     44, ~13
         21        ASSIGN                                                   !2, ~14
         22    > > JMP                                                      ->26
   12    23    >   FETCH_CONSTANT                                   ~16     'current_hour'
         24        ADD                                              ~17     20, ~16
         25        ASSIGN                                                   !2, ~17
   14    26    >   ECHO                                                     !2
   15    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.75 ms | 1396 KiB | 17 Q