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($kb); 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 = 14, Position 2 = 31
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kLMmJ
function name:  (null)
number of ops:  33
compiled vars:  !0 = $hasil, !1 = $biasa, !2 = $puas, !3 = $istimewa, !4 = $kb, !5 = $muKecewa, !6 = $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                                         $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, ->31
   12    14    >   FETCH_DIM_R                                      ~15     !4, 1
         15        FETCH_DIM_R                                      ~16     !4, 2
         16        DIV                                              ~17     !0, ~16
         17        SUB                                              ~18     ~15, ~17
         18        FETCH_DIM_R                                      ~19     !4, 1
         19        SUB                                              ~20     ~18, ~19
         20        ASSIGN                                                   !5, ~20
   13    21        FETCH_DIM_R                                      ~22     !4, 1
         22        FETCH_DIM_R                                      ~23     !4, 2
         23        DIV                                              ~24     ~22, ~23
         24        SUB                                              ~25     !0, ~24
         25        FETCH_DIM_R                                      ~26     !4, 1
         26        SUB                                              ~27     ~25, ~26
         27        ASSIGN                                                   !6, ~27
   15    28        ECHO                                                     !5
   16    29        ECHO                                                     !6
         30      > JMP                                                      ->32
   20    31    >   ECHO                                                     'false'
   21    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.57 ms | 1388 KiB | 17 Q