3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 18; $kecewa = array(0,11,12); $biasa = array(11,12,17); $puas = array(12,17,20); $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 $muBiasa = ($hasil - $kb[1]) / ($kb[2] - $kb[1]); echo $muKecewa; } else { echo "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 30
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jajmP
function name:  (null)
number of ops:  32
compiled vars:  !0 = $hasil, !1 = $kecewa, !2 = $biasa, !3 = $puas, !4 = $kb, !5 = $muKecewa, !6 = $muBiasa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 18
    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                                         $11     
          8        ASSIGN                                                   !4, $11
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                                 
    9    12        IS_SMALLER_OR_EQUAL                                      !0, !4
         13      > JMPZ                                                     ~14, ->30
   12    14    >   FETCH_DIM_R                                      ~15     !4, 2
         15        SUB                                              ~16     ~15, !0
         16        FETCH_DIM_R                                      ~17     !4, 2
         17        FETCH_DIM_R                                      ~18     !4, 1
         18        SUB                                              ~19     ~17, ~18
         19        DIV                                              ~20     ~16, ~19
         20        ASSIGN                                                   !5, ~20
   13    21        FETCH_DIM_R                                      ~22     !4, 1
         22        SUB                                              ~23     !0, ~22
         23        FETCH_DIM_R                                      ~24     !4, 2
         24        FETCH_DIM_R                                      ~25     !4, 1
         25        SUB                                              ~26     ~24, ~25
         26        DIV                                              ~27     ~23, ~26
         27        ASSIGN                                                   !6, ~27
   15    28        ECHO                                                     !5
         29      > JMP                                                      ->31
   19    30    >   ECHO                                                     'false'
   20    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1388 KiB | 17 Q