3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = date ("G"); $minute = date ("i"); $second = date ("s"); $msg = " Today is " . date ("l, M. d, Y.") . " And the time is " . date ("g:i a"); if ($hour >= 00 && $hour <= 9 && $minute <= 59 && $second <= 59) { $greet = "Good Morning,"; } else { if ($hour >= 10 && $hour <= 11 && $minute <= 59 && $second <= 59) { $greet = "Good Day,"; } if ($hour >= 12 && $hour <= 15 && $minute <= 59 && $second <= 59) { $greet = "Good Afternoon,"; } if ($hour >= 16 && $hour <= 23 && $minute <= 59 && $second <= 59) { $greet = "Good Evening,"; } else { $greet = "Welcome,"; } } echo $greet.$msg;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 73
Branch analysis from position: 73
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 42
Branch analysis from position: 40
2 jumps found. (Code = 46) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 47
Branch analysis from position: 46
2 jumps found. (Code = 46) Position 1 = 49, Position 2 = 51
Branch analysis from position: 49
2 jumps found. (Code = 46) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
2 jumps found. (Code = 46) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 59
Branch analysis from position: 58
2 jumps found. (Code = 46) Position 1 = 61, Position 2 = 63
Branch analysis from position: 61
2 jumps found. (Code = 46) Position 1 = 64, Position 2 = 66
Branch analysis from position: 64
2 jumps found. (Code = 46) Position 1 = 67, Position 2 = 69
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 70, Position 2 = 72
Branch analysis from position: 70
1 jumps found. (Code = 42) Position 1 = 73
Branch analysis from position: 73
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 69
Branch analysis from position: 66
Branch analysis from position: 63
Branch analysis from position: 59
Branch analysis from position: 57
Branch analysis from position: 54
Branch analysis from position: 51
Branch analysis from position: 47
Branch analysis from position: 45
Branch analysis from position: 42
Branch analysis from position: 39
Branch analysis from position: 32
Branch analysis from position: 29
Branch analysis from position: 26
filename:       /in/DqC3m
function name:  (null)
number of ops:  76
compiled vars:  !0 = $hour, !1 = $minute, !2 = $second, !3 = $msg, !4 = $greet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'G'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'i'
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 's'
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
    6    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'l%2C+M.+d%2C+Y.'
         14        DO_ICALL                                         $11     
         15        CONCAT                                           ~12     '+Today+is+', $11
         16        CONCAT                                           ~13     ~12, '+And+the+time+is+'
         17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'g%3Ai+a'
         19        DO_ICALL                                         $14     
         20        CONCAT                                           ~15     ~13, $14
         21        ASSIGN                                                   !3, ~15
    8    22        IS_SMALLER_OR_EQUAL                              ~17     0, !0
         23      > JMPZ_EX                                          ~17     ~17, ->26
         24    >   IS_SMALLER_OR_EQUAL                              ~18     !0, 9
         25        BOOL                                             ~17     ~18
         26    > > JMPZ_EX                                          ~17     ~17, ->29
         27    >   IS_SMALLER_OR_EQUAL                              ~19     !1, 59
         28        BOOL                                             ~17     ~19
         29    > > JMPZ_EX                                          ~17     ~17, ->32
         30    >   IS_SMALLER_OR_EQUAL                              ~20     !2, 59
         31        BOOL                                             ~17     ~20
         32    > > JMPZ                                                     ~17, ->35
    9    33    >   ASSIGN                                                   !4, 'Good+Morning%2C'
    8    34      > JMP                                                      ->73
   13    35    >   IS_SMALLER_OR_EQUAL                              ~22     10, !0
         36      > JMPZ_EX                                          ~22     ~22, ->39
         37    >   IS_SMALLER_OR_EQUAL                              ~23     !0, 11
         38        BOOL                                             ~22     ~23
         39    > > JMPZ_EX                                          ~22     ~22, ->42
         40    >   IS_SMALLER_OR_EQUAL                              ~24     !1, 59
         41        BOOL                                             ~22     ~24
         42    > > JMPZ_EX                                          ~22     ~22, ->45
         43    >   IS_SMALLER_OR_EQUAL                              ~25     !2, 59
         44        BOOL                                             ~22     ~25
         45    > > JMPZ                                                     ~22, ->47
   14    46    >   ASSIGN                                                   !4, 'Good+Day%2C'
   16    47    >   IS_SMALLER_OR_EQUAL                              ~27     12, !0
         48      > JMPZ_EX                                          ~27     ~27, ->51
         49    >   IS_SMALLER_OR_EQUAL                              ~28     !0, 15
         50        BOOL                                             ~27     ~28
         51    > > JMPZ_EX                                          ~27     ~27, ->54
         52    >   IS_SMALLER_OR_EQUAL                              ~29     !1, 59
         53        BOOL                                             ~27     ~29
         54    > > JMPZ_EX                                          ~27     ~27, ->57
         55    >   IS_SMALLER_OR_EQUAL                              ~30     !2, 59
         56        BOOL                                             ~27     ~30
         57    > > JMPZ                                                     ~27, ->59
   17    58    >   ASSIGN                                                   !4, 'Good+Afternoon%2C'
   19    59    >   IS_SMALLER_OR_EQUAL                              ~32     16, !0
         60      > JMPZ_EX                                          ~32     ~32, ->63
         61    >   IS_SMALLER_OR_EQUAL                              ~33     !0, 23
         62        BOOL                                             ~32     ~33
         63    > > JMPZ_EX                                          ~32     ~32, ->66
         64    >   IS_SMALLER_OR_EQUAL                              ~34     !1, 59
         65        BOOL                                             ~32     ~34
         66    > > JMPZ_EX                                          ~32     ~32, ->69
         67    >   IS_SMALLER_OR_EQUAL                              ~35     !2, 59
         68        BOOL                                             ~32     ~35
         69    > > JMPZ                                                     ~32, ->72
   20    70    >   ASSIGN                                                   !4, 'Good+Evening%2C'
   19    71      > JMP                                                      ->73
   22    72    >   ASSIGN                                                   !4, 'Welcome%2C'
   24    73    >   CONCAT                                           ~38     !4, !3
         74        ECHO                                                     ~38
         75      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.25 ms | 1009 KiB | 14 Q