3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.23 ms | 1396 KiB | 17 Q