3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 80; $kecewa = array(0,40,65); $biasa = array(40,65,80); $puas = array(65,80,100); $kb = array_intersect($kecewa, $biasa); $bp = array_intersect($biasa, $puas); print_r($kb); print_r($bp); // antara 65 - 80 if ( $hasil >= $bp[1] && $hasil <= $bp[2] ) { $muBiasa = ($hasil - $bp[1]) / ($bp[2] - $bp[1]); $muPuas = ($hasil - $bp[1]) / ($bp[2] - $bp[1]); echo " muPuas " .$muPuas; echo " muBiasa " .$muBiasa; } // antara 40 - 65 elseif ( $hasil >= $kb[1] && $hasil < $kb[2] ) { $muKecewa = ($kb[2] - $hasil) / ($kb[2] - $kb[1]); $muBiasa = ($hasil - $kb[1]) / ($kb[2] - $kb[1]); echo "muKecewa " .$muKecewa; echo "muBias " .$muBiasa; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 46
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 71
Branch analysis from position: 71
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 46) Position 1 = 49, Position 2 = 52
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 71
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 71
Branch analysis from position: 52
Branch analysis from position: 26
filename:       /in/TDkYA
function name:  (null)
number of ops:  72
compiled vars:  !0 = $hasil, !1 = $kecewa, !2 = $biasa, !3 = $puas, !4 = $kb, !5 = $bp, !6 = $muBiasa, !7 = $muPuas, !8 = $muKecewa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 80
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, <array>
    7     4        INIT_FCALL                                               'array_intersect'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $13     
          8        ASSIGN                                                   !4, $13
    8     9        INIT_FCALL                                               'array_intersect'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !5, $15
   10    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                                 
   11    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !5
         19        DO_ICALL                                                 
   14    20        FETCH_DIM_R                                      ~19     !5, 1
         21        IS_SMALLER_OR_EQUAL                              ~20     ~19, !0
         22      > JMPZ_EX                                          ~20     ~20, ->26
         23    >   FETCH_DIM_R                                      ~21     !5, 2
         24        IS_SMALLER_OR_EQUAL                              ~22     !0, ~21
         25        BOOL                                             ~20     ~22
         26    > > JMPZ                                                     ~20, ->46
   16    27    >   FETCH_DIM_R                                      ~23     !5, 1
         28        SUB                                              ~24     !0, ~23
         29        FETCH_DIM_R                                      ~25     !5, 2
         30        FETCH_DIM_R                                      ~26     !5, 1
         31        SUB                                              ~27     ~25, ~26
         32        DIV                                              ~28     ~24, ~27
         33        ASSIGN                                                   !6, ~28
   17    34        FETCH_DIM_R                                      ~30     !5, 1
         35        SUB                                              ~31     !0, ~30
         36        FETCH_DIM_R                                      ~32     !5, 2
         37        FETCH_DIM_R                                      ~33     !5, 1
         38        SUB                                              ~34     ~32, ~33
         39        DIV                                              ~35     ~31, ~34
         40        ASSIGN                                                   !7, ~35
   18    41        CONCAT                                           ~37     '+muPuas+', !7
         42        ECHO                                                     ~37
   19    43        CONCAT                                           ~38     '+muBiasa+', !6
         44        ECHO                                                     ~38
         45      > JMP                                                      ->71
   22    46    >   FETCH_DIM_R                                      ~39     !4, 1
         47        IS_SMALLER_OR_EQUAL                              ~40     ~39, !0
         48      > JMPZ_EX                                          ~40     ~40, ->52
         49    >   FETCH_DIM_R                                      ~41     !4, 2
         50        IS_SMALLER                                       ~42     !0, ~41
         51        BOOL                                             ~40     ~42
         52    > > JMPZ                                                     ~40, ->71
   24    53    >   FETCH_DIM_R                                      ~43     !4, 2
         54        SUB                                              ~44     ~43, !0
         55        FETCH_DIM_R                                      ~45     !4, 2
         56        FETCH_DIM_R                                      ~46     !4, 1
         57        SUB                                              ~47     ~45, ~46
         58        DIV                                              ~48     ~44, ~47
         59        ASSIGN                                                   !8, ~48
   25    60        FETCH_DIM_R                                      ~50     !4, 1
         61        SUB                                              ~51     !0, ~50
         62        FETCH_DIM_R                                      ~52     !4, 2
         63        FETCH_DIM_R                                      ~53     !4, 1
         64        SUB                                              ~54     ~52, ~53
         65        DIV                                              ~55     ~51, ~54
         66        ASSIGN                                                   !6, ~55
   26    67        CONCAT                                           ~57     'muKecewa+', !8
         68        ECHO                                                     ~57
   27    69        CONCAT                                           ~58     'muBias+', !6
         70        ECHO                                                     ~58
   28    71    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.99 ms | 1400 KiB | 17 Q