3v4l.org

run code in 500+ PHP versions simultaneously
<?php $colorLevel['name'] = "ATTR_VPMCV13"; $colorLevel['level'] = "90"; if(($colorLevel['name'] === 'ATTR_VPMCV13') && ($colorLevel['level'] >= 80)) { $prominentSideNumberArray[] = 10; } elseif(($colorLevel['name'] == 'ATTR_VPMCV13') && ($colorLevel['level'] >= 60) && ($colorLevel['level'] <= 70)){ $prominentSideNumberArray[] = 8; } // 1 # ternary $prominentSideNumberArray_1[] = ((($colorLevel['name'] === 'ATTR_VPMCV13') && ($colorLevel['level'] >= 80) )? 10 : (($colorLevel['name'] == 'ATTR_VPMCV13') && ($colorLevel['level'] >= 60) && ($colorLevel['level'] <= 70)?8:"")) ; var_dump($prominentSideNumberArray); var_dump($prominentSideNumberArray_1); // 2 # varaible delcare $color_name = "ATTR_VPMCV13"; if($colorLevel['name'] == $color_name ) $prominentSideNumberArray_2[] = (($colorLevel['level'] >= 80)? 10 : ( ($colorLevel['level'] >= 60) && ($colorLevel['level'] <= 70)?8:"")) ; var_dump($prominentSideNumberArray_2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 33
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 81
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 66, Position 2 = 68
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 68
2 jumps found. (Code = 46) Position 1 = 71, Position 2 = 74
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 77
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 77
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 74
Branch analysis from position: 81
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 42
Branch analysis from position: 39
2 jumps found. (Code = 46) Position 1 = 43, Position 2 = 46
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 81
Branch analysis from position: 63
Branch analysis from position: 81
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 81
Branch analysis from position: 63
Branch analysis from position: 81
Branch analysis from position: 46
Branch analysis from position: 42
Branch analysis from position: 33
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 33
Branch analysis from position: 30
Branch analysis from position: 33
Branch analysis from position: 27
Branch analysis from position: 24
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/3kLvv
function name:  (null)
number of ops:  85
compiled vars:  !0 = $colorLevel, !1 = $prominentSideNumberArray, !2 = $prominentSideNumberArray_1, !3 = $color_name, !4 = $prominentSideNumberArray_2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                                   !0, 'name'
          1        OP_DATA                                                      'ATTR_VPMCV13'
    3     2        ASSIGN_DIM                                                   !0, 'level'
          3        OP_DATA                                                      '90'
    4     4        FETCH_DIM_R                                          ~7      !0, 'name'
          5        IS_IDENTICAL                                         ~8      ~7, 'ATTR_VPMCV13'
          6      > JMPZ_EX                                              ~8      ~8, ->10
          7    >   FETCH_DIM_R                                          ~9      !0, 'level'
          8        IS_SMALLER_OR_EQUAL                                  ~10     80, ~9
          9        BOOL                                                 ~8      ~10
         10    > > JMPZ                                                         ~8, ->14
    6    11    >   ASSIGN_DIM                                                   !1
         12        OP_DATA                                                      10
    4    13      > JMP                                                          ->27
    9    14    >   FETCH_DIM_R                                          ~12     !0, 'name'
         15        IS_EQUAL                                             ~13     ~12, 'ATTR_VPMCV13'
         16      > JMPZ_EX                                              ~13     ~13, ->20
         17    >   FETCH_DIM_R                                          ~14     !0, 'level'
         18        IS_SMALLER_OR_EQUAL                                  ~15     60, ~14
         19        BOOL                                                 ~13     ~15
         20    > > JMPZ_EX                                              ~13     ~13, ->24
         21    >   FETCH_DIM_R                                          ~16     !0, 'level'
         22        IS_SMALLER_OR_EQUAL                                  ~17     ~16, 70
         23        BOOL                                                 ~13     ~17
         24    > > JMPZ                                                         ~13, ->27
   10    25    >   ASSIGN_DIM                                                   !1
         26        OP_DATA                                                      8
   14    27    >   FETCH_DIM_R                                          ~20     !0, 'name'
         28        IS_IDENTICAL                                         ~21     ~20, 'ATTR_VPMCV13'
         29      > JMPZ_EX                                              ~21     ~21, ->33
         30    >   FETCH_DIM_R                                          ~22     !0, 'level'
         31        IS_SMALLER_OR_EQUAL                                  ~23     80, ~22
         32        BOOL                                                 ~21     ~23
         33    > > JMPZ                                                         ~21, ->36
         34    >   QM_ASSIGN                                            ~24     10
         35      > JMP                                                          ->51
         36    >   FETCH_DIM_R                                          ~25     !0, 'name'
         37        IS_EQUAL                                             ~26     ~25, 'ATTR_VPMCV13'
         38      > JMPZ_EX                                              ~26     ~26, ->42
         39    >   FETCH_DIM_R                                          ~27     !0, 'level'
         40        IS_SMALLER_OR_EQUAL                                  ~28     60, ~27
         41        BOOL                                                 ~26     ~28
         42    > > JMPZ_EX                                              ~26     ~26, ->46
         43    >   FETCH_DIM_R                                          ~29     !0, 'level'
         44        IS_SMALLER_OR_EQUAL                                  ~30     ~29, 70
         45        BOOL                                                 ~26     ~30
         46    > > JMPZ                                                         ~26, ->49
         47    >   QM_ASSIGN                                            ~31     8
         48      > JMP                                                          ->50
         49    >   QM_ASSIGN                                            ~31     ''
         50    >   QM_ASSIGN                                            ~24     ~31
         51    >   ASSIGN_DIM                                                   !2
         52        OP_DATA                                                      ~24
   15    53        INIT_FCALL                                                   'var_dump'
         54        SEND_VAR                                                     !1
         55        DO_ICALL                                                     
   16    56        INIT_FCALL                                                   'var_dump'
         57        SEND_VAR                                                     !2
         58        DO_ICALL                                                     
   20    59        ASSIGN                                                       !3, 'ATTR_VPMCV13'
   21    60        FETCH_DIM_R                                          ~35     !0, 'name'
         61        IS_EQUAL                                                     !3, ~35
         62      > JMPZ                                                         ~36, ->81
   22    63    >   FETCH_DIM_R                                          ~38     !0, 'level'
         64        IS_SMALLER_OR_EQUAL                                          80, ~38
         65      > JMPZ                                                         ~39, ->68
         66    >   QM_ASSIGN                                            ~40     10
         67      > JMP                                                          ->79
   23    68    >   FETCH_DIM_R                                          ~41     !0, 'level'
         69        IS_SMALLER_OR_EQUAL                                  ~42     60, ~41
         70      > JMPZ_EX                                              ~42     ~42, ->74
         71    >   FETCH_DIM_R                                          ~43     !0, 'level'
         72        IS_SMALLER_OR_EQUAL                                  ~44     ~43, 70
         73        BOOL                                                 ~42     ~44
         74    > > JMPZ                                                         ~42, ->77
         75    >   QM_ASSIGN                                            ~45     8
         76      > JMP                                                          ->78
         77    >   QM_ASSIGN                                            ~45     ''
         78    >   QM_ASSIGN                                            ~40     ~45
   22    79    >   ASSIGN_DIM                                                   !4
   23    80        OP_DATA                                                      ~40
   25    81    >   INIT_FCALL                                                   'var_dump'
         82        SEND_VAR                                                     !4
         83        DO_ICALL                                                     
         84      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.04 ms | 3350 KiB | 14 Q