3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); include '../koneksi/connect.php'; $selectprocessor = mysql_query("SELECT 'benchmark_processor' FROM `processor` "); $fuzzyprocessormax = mysql_query("SELECT 'max_batas_fuzzy' FROM `batas_fuzzy` WHERE 'nama_batas_fuzzy' = 'processor'"); $fuzzyprocessormin = mysql_query("SELECT 'min_batas_fuzzy' FROM `batas_fuzzy` WHERE 'nama_batas_fuzzy' = 'processor'"); $office_status = 'unchecked'; $game_status = 'unchecked'; if (isset($_POST['submit_kebutuhan_processor'])) { $selected_radio = $_POST['$kebutuhan_processor_status']; if ($selected_radio == 'office') { $office_status = 'checked'; while($row = mysql_fetch_array($selectprocessor)) { // Hitung fuzzy processor min if ($row <= $fuzzyprocessormin ) { mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '1'"); echo 'Kebutuhan fuzzy 1'; die(); header("Location: ../processor.html"); } else if ($fuzzyprocessormin <= $row or $row <= $fuzzyprocessormax ) { $rekomendasi = ($fuzzyprocessormax - $row ) / ($fuzzyprocessormax-$fuzzyprocessormin); mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '$rekomendasi'"); die(); header("Location: ../processor.html");} else if ($row >= $fuzzyprocessormax) { mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '0' "); } else echo header("Location: ../processor.html"); } } else if ($selected_radio == 'game') { $game_status = 'checked'; while($row = mysql_fetch_array($selectprocessor)) { // Hitung fuzzy processor max if ($row <= $fuzzyprocessormin) { mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '0' "); } else if ($fuzzyprocessormin <= $row OR $row <= $fuzzyhardiskmax) { $rekomendasi = ($row - $fuzzyprocessormin) / ($fuzzyprocessormax-$fuzzyprocessormin); mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '$rekomendasi' "); } else if ($row >= $fuzzyprocessormax) { mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '1' "); } else header("Location: ../processor.html"); } }} ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 115
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 75
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
2 jumps found. (Code = 44) Position 1 = 74, Position 2 = 28
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 115
Branch analysis from position: 115
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 39
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 39
2 jumps found. (Code = 47) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 59
Branch analysis from position: 44
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 65
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
Branch analysis from position: 65
2 jumps found. (Code = 44) Position 1 = 74, Position 2 = 28
Branch analysis from position: 74
Branch analysis from position: 28
Branch analysis from position: 43
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 77, Position 2 = 115
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 110
Branch analysis from position: 110
2 jumps found. (Code = 44) Position 1 = 115, Position 2 = 79
Branch analysis from position: 115
Branch analysis from position: 79
2 jumps found. (Code = 43) Position 1 = 81, Position 2 = 85
Branch analysis from position: 81
1 jumps found. (Code = 42) Position 1 = 110
Branch analysis from position: 110
Branch analysis from position: 85
2 jumps found. (Code = 47) Position 1 = 87, Position 2 = 89
Branch analysis from position: 87
2 jumps found. (Code = 43) Position 1 = 90, Position 2 = 101
Branch analysis from position: 90
1 jumps found. (Code = 42) Position 1 = 110
Branch analysis from position: 110
Branch analysis from position: 101
2 jumps found. (Code = 43) Position 1 = 103, Position 2 = 107
Branch analysis from position: 103
1 jumps found. (Code = 42) Position 1 = 110
Branch analysis from position: 110
Branch analysis from position: 107
2 jumps found. (Code = 44) Position 1 = 115, Position 2 = 79
Branch analysis from position: 115
Branch analysis from position: 79
Branch analysis from position: 89
Branch analysis from position: 115
Branch analysis from position: 115
filename:       /in/7Gqp4
function name:  (null)
number of ops:  116
compiled vars:  !0 = $selectprocessor, !1 = $fuzzyprocessormax, !2 = $fuzzyprocessormin, !3 = $office_status, !4 = $game_status, !5 = $selected_radio, !6 = $row, !7 = $rekomendasi, !8 = $fuzzyhardiskmax
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INCLUDE_OR_EVAL                                          '..%2Fkoneksi%2Fconnect.php', INCLUDE
    5     4        INIT_FCALL_BY_NAME                                       'mysql_query'
          5        SEND_VAL_EX                                              'SELECT+%27benchmark_processor%27+FROM+%60processor%60+'
          6        DO_FCALL                                      0  $11     
          7        ASSIGN                                                   !0, $11
    6     8        INIT_FCALL_BY_NAME                                       'mysql_query'
          9        SEND_VAL_EX                                              'SELECT+%27max_batas_fuzzy%27+FROM+%60batas_fuzzy%60+WHERE+%27nama_batas_fuzzy%27+%3D+%27processor%27'
         10        DO_FCALL                                      0  $13     
         11        ASSIGN                                                   !1, $13
    7    12        INIT_FCALL_BY_NAME                                       'mysql_query'
         13        SEND_VAL_EX                                              'SELECT+%27min_batas_fuzzy%27+FROM+%60batas_fuzzy%60+WHERE+%27nama_batas_fuzzy%27+%3D+%27processor%27'
         14        DO_FCALL                                      0  $15     
         15        ASSIGN                                                   !2, $15
    8    16        ASSIGN                                                   !3, 'unchecked'
    9    17        ASSIGN                                                   !4, 'unchecked'
   11    18        FETCH_IS                                         ~19     '_POST'
         19        ISSET_ISEMPTY_DIM_OBJ                         0          ~19, 'submit_kebutuhan_processor'
         20      > JMPZ                                                     ~20, ->115
   12    21    >   FETCH_R                      global              ~21     '_POST'
         22        FETCH_DIM_R                                      ~22     ~21, '%24kebutuhan_processor_status'
         23        ASSIGN                                                   !5, ~22
   14    24        IS_EQUAL                                                 !5, 'office'
         25      > JMPZ                                                     ~24, ->75
   15    26    >   ASSIGN                                                   !3, 'checked'
   17    27      > JMP                                                      ->69
   21    28    >   IS_SMALLER_OR_EQUAL                                      !6, !2
         29      > JMPZ                                                     ~26, ->39
   23    30    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         31        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%271%27'
         32        DO_FCALL                                      0          
   24    33        ECHO                                                     'Kebutuhan+fuzzy+1'
         34      > EXIT                                                     
   25    35*       INIT_FCALL                                               'header'
         36*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         37*       DO_ICALL                                                 
         38*       JMP                                                      ->69
   28    39    >   IS_SMALLER_OR_EQUAL                              ~29     !2, !6
         40      > JMPNZ_EX                                         ~29     ~29, ->43
         41    >   IS_SMALLER_OR_EQUAL                              ~30     !6, !1
         42        BOOL                                             ~29     ~30
         43    > > JMPZ                                                     ~29, ->59
   30    44    >   SUB                                              ~31     !1, !6
         45        SUB                                              ~32     !1, !2
         46        DIV                                              ~33     ~31, ~32
         47        ASSIGN                                                   !7, ~33
   31    48        INIT_FCALL_BY_NAME                                       'mysql_query'
         49        ROPE_INIT                                     3  ~36     'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%27'
         50        ROPE_ADD                                      1  ~36     ~36, !7
         51        ROPE_END                                      2  ~35     ~36, '%27'
         52        SEND_VAL_EX                                              ~35
         53        DO_FCALL                                      0          
   32    54      > EXIT                                                     
   33    55*       INIT_FCALL                                               'header'
         56*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         57*       DO_ICALL                                                 
         58*       JMP                                                      ->69
   35    59    >   IS_SMALLER_OR_EQUAL                                      !1, !6
         60      > JMPZ                                                     ~40, ->65
   37    61    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         62        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%270%27+'
         63        DO_FCALL                                      0          
         64      > JMP                                                      ->69
   40    65    >   INIT_FCALL                                               'header'
         66        SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         67        DO_ICALL                                         $42     
         68        ECHO                                                     $42
   17    69    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         70        SEND_VAR_EX                                              !0
         71        DO_FCALL                                      0  $43     
         72        ASSIGN                                           ~44     !6, $43
         73      > JMPNZ                                                    ~44, ->28
         74    > > JMP                                                      ->115
   45    75    >   IS_EQUAL                                                 !5, 'game'
         76      > JMPZ                                                     ~45, ->115
   47    77    >   ASSIGN                                                   !4, 'checked'
   50    78      > JMP                                                      ->110
   53    79    >   IS_SMALLER_OR_EQUAL                                      !6, !2
         80      > JMPZ                                                     ~47, ->85
   54    81    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         82        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%270%27+'
         83        DO_FCALL                                      0          
         84      > JMP                                                      ->110
   56    85    >   IS_SMALLER_OR_EQUAL                              ~49     !2, !6
         86      > JMPNZ_EX                                         ~49     ~49, ->89
         87    >   IS_SMALLER_OR_EQUAL                              ~50     !6, !8
         88        BOOL                                             ~49     ~50
         89    > > JMPZ                                                     ~49, ->101
   58    90    >   SUB                                              ~51     !6, !2
         91        SUB                                              ~52     !1, !2
         92        DIV                                              ~53     ~51, ~52
         93        ASSIGN                                                   !7, ~53
   59    94        INIT_FCALL_BY_NAME                                       'mysql_query'
         95        ROPE_INIT                                     3  ~56     'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%27'
         96        ROPE_ADD                                      1  ~56     ~56, !7
         97        ROPE_END                                      2  ~55     ~56, '%27+'
         98        SEND_VAL_EX                                              ~55
         99        DO_FCALL                                      0          
        100      > JMP                                                      ->110
   61   101    >   IS_SMALLER_OR_EQUAL                                      !1, !6
        102      > JMPZ                                                     ~59, ->107
   63   103    >   INIT_FCALL_BY_NAME                                       'mysql_query'
        104        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%271%27+'
        105        DO_FCALL                                      0          
        106      > JMP                                                      ->110
   67   107    >   INIT_FCALL                                               'header'
        108        SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
        109        DO_ICALL                                                 
   50   110    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
        111        SEND_VAR_EX                                              !0
        112        DO_FCALL                                      0  $62     
        113        ASSIGN                                           ~63     !6, $62
        114      > JMPNZ                                                    ~63, ->79
   71   115    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.5 ms | 1408 KiB | 17 Q