3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 4000; $fuzzyprocessormax = 6000; $fuzzyprocessormin = 2000; $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"); } } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 61
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 61
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 15
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 26
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 47) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 46
Branch analysis from position: 31
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 52
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 15
Branch analysis from position: 61
Branch analysis from position: 15
Branch analysis from position: 30
Branch analysis from position: 61
Branch analysis from position: 61
filename:       /in/5EgdO
function name:  (null)
number of ops:  62
compiled vars:  !0 = $row, !1 = $fuzzyprocessormax, !2 = $fuzzyprocessormin, !3 = $office_status, !4 = $game_status, !5 = $selected_radio, !6 = $rekomendasi, !7 = $selectprocessor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 4000
    5     1        ASSIGN                                                   !1, 6000
    6     2        ASSIGN                                                   !2, 2000
    7     3        ASSIGN                                                   !3, 'unchecked'
    8     4        ASSIGN                                                   !4, 'unchecked'
   10     5        FETCH_IS                                         ~13     '_POST'
          6        ISSET_ISEMPTY_DIM_OBJ                         0          ~13, 'submit_kebutuhan_processor'
          7      > JMPZ                                                     ~14, ->61
   11     8    >   FETCH_R                      global              ~15     '_POST'
          9        FETCH_DIM_R                                      ~16     ~15, '%24kebutuhan_processor_status'
         10        ASSIGN                                                   !5, ~16
   13    11        IS_EQUAL                                                 !5, 'office'
         12      > JMPZ                                                     ~18, ->61
   14    13    >   ASSIGN                                                   !3, 'checked'
   16    14      > JMP                                                      ->56
   20    15    >   IS_SMALLER_OR_EQUAL                                      !0, !2
         16      > JMPZ                                                     ~20, ->26
   22    17    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         18        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%271%27'
         19        DO_FCALL                                      0          
   23    20        ECHO                                                     'Kebutuhan+fuzzy+1'
         21      > EXIT                                                     
   24    22*       INIT_FCALL                                               'header'
         23*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         24*       DO_ICALL                                                 
         25*       JMP                                                      ->56
   27    26    >   IS_SMALLER_OR_EQUAL                              ~23     !2, !0
         27      > JMPNZ_EX                                         ~23     ~23, ->30
         28    >   IS_SMALLER_OR_EQUAL                              ~24     !0, !1
         29        BOOL                                             ~23     ~24
         30    > > JMPZ                                                     ~23, ->46
   29    31    >   SUB                                              ~25     !1, !0
         32        SUB                                              ~26     !1, !2
         33        DIV                                              ~27     ~25, ~26
         34        ASSIGN                                                   !6, ~27
   30    35        INIT_FCALL_BY_NAME                                       'mysql_query'
         36        ROPE_INIT                                     3  ~30     'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%27'
         37        ROPE_ADD                                      1  ~30     ~30, !6
         38        ROPE_END                                      2  ~29     ~30, '%27'
         39        SEND_VAL_EX                                              ~29
         40        DO_FCALL                                      0          
   31    41      > EXIT                                                     
   32    42*       INIT_FCALL                                               'header'
         43*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         44*       DO_ICALL                                                 
         45*       JMP                                                      ->56
   34    46    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         47      > JMPZ                                                     ~34, ->52
   36    48    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         49        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%270%27+'
         50        DO_FCALL                                      0          
         51      > JMP                                                      ->56
   39    52    >   INIT_FCALL                                               'header'
         53        SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         54        DO_ICALL                                         $36     
         55        ECHO                                                     $36
   16    56    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         57        SEND_VAR_EX                                              !7
         58        DO_FCALL                                      0  $37     
         59        ASSIGN                                           ~38     !0, $37
         60      > JMPNZ                                                    ~38, ->15
   46    61    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.13 ms | 1404 KiB | 15 Q