3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date= date('md'); $cyfra = substr($date, 0,1); if($cyfra == 0) $date = substr($date, 1,4); if (321 <= $date) echo "prawda"; if((321 <= $date) && ($date < 622)) $style = "wiosna"; elseif($date >= 622 && $date < 923) $style = "lato"; elseif($date >= 923 && $date < 1222) $style = "jesien"; elseif(($date < 321) || ($date >= 1222)) $style = "zima"; echo $style;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
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 = 48
Branch analysis from position: 48
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 = 43) Position 1 = 40, Position 2 = 42
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
Branch analysis from position: 42
2 jumps found. (Code = 47) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 48
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 46
Branch analysis from position: 39
Branch analysis from position: 32
Branch analysis from position: 25
Branch analysis from position: 21
Branch analysis from position: 18
filename:       /in/rhe3c
function name:  (null)
number of ops:  50
compiled vars:  !0 = $date, !1 = $cyfra, !2 = $style
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'md'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    4    10        IS_EQUAL                                                 !1, 0
         11      > JMPZ                                                     ~7, ->18
         12    >   INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 1
         15        SEND_VAL                                                 4
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !0, $8
    5    18    >   IS_SMALLER_OR_EQUAL                                      321, !0
         19      > JMPZ                                                     ~10, ->21
         20    >   ECHO                                                     'prawda'
    6    21    >   IS_SMALLER_OR_EQUAL                              ~11     321, !0
         22      > JMPZ_EX                                          ~11     ~11, ->25
         23    >   IS_SMALLER                                       ~12     !0, 622
         24        BOOL                                             ~11     ~12
         25    > > JMPZ                                                     ~11, ->28
         26    >   ASSIGN                                                   !2, 'wiosna'
         27      > JMP                                                      ->48
    7    28    >   IS_SMALLER_OR_EQUAL                              ~14     622, !0
         29      > JMPZ_EX                                          ~14     ~14, ->32
         30    >   IS_SMALLER                                       ~15     !0, 923
         31        BOOL                                             ~14     ~15
         32    > > JMPZ                                                     ~14, ->35
         33    >   ASSIGN                                                   !2, 'lato'
         34      > JMP                                                      ->48
    8    35    >   IS_SMALLER_OR_EQUAL                              ~17     923, !0
         36      > JMPZ_EX                                          ~17     ~17, ->39
         37    >   IS_SMALLER                                       ~18     !0, 1222
         38        BOOL                                             ~17     ~18
         39    > > JMPZ                                                     ~17, ->42
         40    >   ASSIGN                                                   !2, 'jesien'
         41      > JMP                                                      ->48
    9    42    >   IS_SMALLER                                       ~20     !0, 321
         43      > JMPNZ_EX                                         ~20     ~20, ->46
         44    >   IS_SMALLER_OR_EQUAL                              ~21     1222, !0
         45        BOOL                                             ~20     ~21
         46    > > JMPZ                                                     ~20, ->48
         47    >   ASSIGN                                                   !2, 'zima'
   10    48    >   ECHO                                                     !2
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.27 ms | 1400 KiB | 17 Q