3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 40; $kecewa = array(0,40,65); $biasa = array(40,65,80); $puas = array(65,80,100); $kb = array_intersect($kecewa, $biasa); print_r($kb); if ( $hasil <= $kb ) { // hitung nilai kecewa pake rumus fuzzy logic $muKecewa = ($kb[2] - $hasil) / ($kb[2] - $kb[1]); //output : 52,5 echo $muKecewa; echo "<br />"; } else { echo "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2OUsY
function name:  (null)
number of ops:  26
compiled vars:  !0 = $hasil, !1 = $kecewa, !2 = $biasa, !3 = $puas, !4 = $kb, !5 = $muKecewa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 40
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, <array>
    6     4        INIT_FCALL                                               'array_intersect'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $10     
          8        ASSIGN                                                   !4, $10
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                                 
    9    12        IS_SMALLER_OR_EQUAL                                      !0, !4
         13      > JMPZ                                                     ~13, ->24
   12    14    >   FETCH_DIM_R                                      ~14     !4, 2
         15        SUB                                              ~15     ~14, !0
         16        FETCH_DIM_R                                      ~16     !4, 2
         17        FETCH_DIM_R                                      ~17     !4, 1
         18        SUB                                              ~18     ~16, ~17
         19        DIV                                              ~19     ~15, ~18
         20        ASSIGN                                                   !5, ~19
   14    21        ECHO                                                     !5
   15    22        ECHO                                                     '%3Cbr+%2F%3E'
         23      > JMP                                                      ->25
   19    24    >   ECHO                                                     'false'
   20    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.22 ms | 1387 KiB | 17 Q