3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.94 ms | 1396 KiB | 17 Q