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); echo var_dump($date); 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 $date;
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 = 24, Position 2 = 25
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 = 43) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
2 jumps found. (Code = 46) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
Branch analysis from position: 39
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
Branch analysis from position: 46
2 jumps found. (Code = 47) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 52
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
Branch analysis from position: 50
Branch analysis from position: 43
Branch analysis from position: 36
Branch analysis from position: 29
Branch analysis from position: 25
Branch analysis from position: 18
filename:       /in/DkObW
function name:  (null)
number of ops:  54
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    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
    6    22        IS_SMALLER_OR_EQUAL                                      321, !0
         23      > JMPZ                                                     ~11, ->25
         24    >   ECHO                                                     'prawda'
    7    25    >   IS_SMALLER_OR_EQUAL                              ~12     321, !0
         26      > JMPZ_EX                                          ~12     ~12, ->29
         27    >   IS_SMALLER                                       ~13     !0, 622
         28        BOOL                                             ~12     ~13
         29    > > JMPZ                                                     ~12, ->32
         30    >   ASSIGN                                                   !2, 'wiosna'
         31      > JMP                                                      ->52
    8    32    >   IS_SMALLER_OR_EQUAL                              ~15     622, !0
         33      > JMPZ_EX                                          ~15     ~15, ->36
         34    >   IS_SMALLER                                       ~16     !0, 923
         35        BOOL                                             ~15     ~16
         36    > > JMPZ                                                     ~15, ->39
         37    >   ASSIGN                                                   !2, 'lato'
         38      > JMP                                                      ->52
    9    39    >   IS_SMALLER_OR_EQUAL                              ~18     923, !0
         40      > JMPZ_EX                                          ~18     ~18, ->43
         41    >   IS_SMALLER                                       ~19     !0, 1222
         42        BOOL                                             ~18     ~19
         43    > > JMPZ                                                     ~18, ->46
         44    >   ASSIGN                                                   !2, 'jesien'
         45      > JMP                                                      ->52
   10    46    >   IS_SMALLER                                       ~21     !0, 321
         47      > JMPNZ_EX                                         ~21     ~21, ->50
         48    >   IS_SMALLER_OR_EQUAL                              ~22     1222, !0
         49        BOOL                                             ~21     ~22
         50    > > JMPZ                                                     ~21, ->52
         51    >   ASSIGN                                                   !2, 'zima'
   11    52    >   ECHO                                                     !0
         53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.36 ms | 1404 KiB | 19 Q