3v4l.org

run code in 200+ PHP versions simultaneously
<?php $auslastung = 1; $retVal = ($auslastung * 5) + ((($auslastung < 0.25) ? 0 : $auslastung) * 5) + ((($auslastung < 0.5) ? 0 : $auslastung) * 5) + ((($auslastung < 0.8) ? 0 : $auslastung) * 5); echo $retVal;
based on RQoTB
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Branch analysis from position: 20
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/7Bq7R
function name:  (null)
number of ops:  26
compiled vars:  !0 = $auslastung, !1 = $retVal
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 1
   4     1        MUL                                              ~3      !0, 5
         2        IS_SMALLER_OR_EQUAL                              ~4      !0, 0.25
         3      > JMPZ                                                     ~4, ->6
         4    >   QM_ASSIGN                                        ~5      0
         5      > JMP                                                      ->7
         6    >   QM_ASSIGN                                        ~5      !0
         7    >   MUL                                              ~6      ~5, 5
         8        ADD                                              ~7      ~3, ~6
   5     9        IS_SMALLER_OR_EQUAL                              ~8      !0, 0.5
        10      > JMPZ                                                     ~8, ->13
        11    >   QM_ASSIGN                                        ~9      0
        12      > JMP                                                      ->14
        13    >   QM_ASSIGN                                        ~9      !0
        14    >   MUL                                              ~10     ~9, 5
        15        ADD                                              ~11     ~7, ~10
   6    16        IS_SMALLER_OR_EQUAL                              ~12     !0, 0.8
        17      > JMPZ                                                     ~12, ->20
        18    >   QM_ASSIGN                                        ~13     0
        19      > JMP                                                      ->21
        20    >   QM_ASSIGN                                        ~13     !0
        21    >   MUL                                              ~14     ~13, 5
        22        ADD                                              ~15     ~11, ~14
        23        ASSIGN                                                   !1, ~15
   7    24        ECHO                                                     !1
   8    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0