3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_day = date('j'); $current_month = date('n'); $season = ''; switch($current_month): case 1: $season = $current_day<=6 ? 'Christmastide' : 'Not Christmastide'; break; case 12: $season = $current_day>=25 ? 'Christmastide' : 'Not Christmastide'; break; default: $season = 'Not Christmastide'; break; endswitch; echo $season;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
filename:       /in/5rNvA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $current_day, !1 = $current_month, !2 = $season
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'j'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'n'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        ASSIGN                                                   !2, ''
    7     9        IS_EQUAL                                                 !1, 1
         10      > JMPNZ                                                    ~8, ->14
   10    11    >   IS_EQUAL                                                 !1, 12
         12      > JMPNZ                                                    ~8, ->21
         13    > > JMP                                                      ->28
    8    14    >   IS_SMALLER_OR_EQUAL                                      !0, 6
         15      > JMPZ                                                     ~9, ->18
         16    >   QM_ASSIGN                                        ~10     'Christmastide'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~10     'Not+Christmastide'
         19    >   ASSIGN                                                   !2, ~10
    9    20      > JMP                                                      ->30
   11    21    >   IS_SMALLER_OR_EQUAL                                      25, !0
         22      > JMPZ                                                     ~12, ->25
         23    >   QM_ASSIGN                                        ~13     'Christmastide'
         24      > JMP                                                      ->26
         25    >   QM_ASSIGN                                        ~13     'Not+Christmastide'
         26    >   ASSIGN                                                   !2, ~13
   12    27      > JMP                                                      ->30
   14    28    >   ASSIGN                                                   !2, 'Not+Christmastide'
   15    29      > JMP                                                      ->30
   17    30    >   ECHO                                                     !2
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.49 ms | 1015 KiB | 14 Q