3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 4000; $fuzzyprocessormax = 6000; $fuzzyprocessormin = 2000; 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'"); echo 'Kebutuhan fuzzy '.$rekomendasi; die(); header("Location: ../processor.html");} else if ($row >= $fuzzyprocessormax) { mysql_query ( "UPDATE processor SET kebutuhan_fuzzy = '0' "); echo 'Kebutuhan fuzzy 0'; die();} else echo header("Location: ../processor.html"); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 4
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 37
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 45
Branch analysis from position: 39
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 4
Branch analysis from position: 54
Branch analysis from position: 4
Branch analysis from position: 19
filename:       /in/gMV7u
function name:  (null)
number of ops:  55
compiled vars:  !0 = $row, !1 = $fuzzyprocessormax, !2 = $fuzzyprocessormin, !3 = $rekomendasi, !4 = $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
   11     3      > JMP                                                      ->49
   15     4    >   IS_SMALLER_OR_EQUAL                                      !0, !2
          5      > JMPZ                                                     ~8, ->15
   17     6    >   INIT_FCALL_BY_NAME                                       'mysql_query'
          7        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%271%27'
          8        DO_FCALL                                      0          
   18     9        ECHO                                                     'Kebutuhan+fuzzy+1'
         10      > EXIT                                                     
   19    11*       INIT_FCALL                                               'header'
         12*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         13*       DO_ICALL                                                 
         14*       JMP                                                      ->49
   22    15    >   IS_SMALLER_OR_EQUAL                              ~11     !2, !0
         16      > JMPNZ_EX                                         ~11     ~11, ->19
         17    >   IS_SMALLER_OR_EQUAL                              ~12     !0, !1
         18        BOOL                                             ~11     ~12
         19    > > JMPZ                                                     ~11, ->37
   24    20    >   SUB                                              ~13     !1, !0
         21        SUB                                              ~14     !1, !2
         22        DIV                                              ~15     ~13, ~14
         23        ASSIGN                                                   !3, ~15
   25    24        INIT_FCALL_BY_NAME                                       'mysql_query'
         25        ROPE_INIT                                     3  ~18     'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%27'
         26        ROPE_ADD                                      1  ~18     ~18, !3
         27        ROPE_END                                      2  ~17     ~18, '%27'
         28        SEND_VAL_EX                                              ~17
         29        DO_FCALL                                      0          
   26    30        CONCAT                                           ~21     'Kebutuhan+fuzzy+', !3
         31        ECHO                                                     ~21
         32      > EXIT                                                     
   28    33*       INIT_FCALL                                               'header'
         34*       SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         35*       DO_ICALL                                                 
         36*       JMP                                                      ->49
   30    37    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         38      > JMPZ                                                     ~23, ->45
   32    39    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         40        SEND_VAL_EX                                              'UPDATE+processor+SET++kebutuhan_fuzzy+%3D+%270%27+'
         41        DO_FCALL                                      0          
   33    42        ECHO                                                     'Kebutuhan+fuzzy+0'
         43      > EXIT                                                     
         44*       JMP                                                      ->49
   35    45    >   INIT_FCALL                                               'header'
         46        SEND_VAL                                                 'Location%3A+..%2Fprocessor.html'
         47        DO_ICALL                                         $25     
         48        ECHO                                                     $25
   11    49    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         50        SEND_VAR_EX                                              !4
         51        DO_FCALL                                      0  $26     
         52        ASSIGN                                           ~27     !0, $26
         53      > JMPNZ                                                    ~27, ->4
   42    54    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.34 ms | 1400 KiB | 15 Q