3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 80; $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]; }
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 = 34
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 26
filename:       /in/n01Pe
function name:  (null)
number of ops:  35
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, 80
    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                                                 
   13    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, ->34
   15    27    >   FETCH_DIM_R                                      ~21     !5, 1
         28        FETCH_DIM_R                                      ~22     !5, 2
         29        DIV                                              ~23     ~21, ~22
         30        SUB                                              ~24     !0, ~23
         31        FETCH_DIM_R                                      ~25     !5, 1
         32        SUB                                              ~26     ~24, ~25
         33        ASSIGN                                                   !6, ~26
   16    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.16 ms | 1396 KiB | 17 Q