3v4l.org

run code in 300+ PHP versions simultaneously
<?php $auslastung = 0.2; $retVal = ($auslastung * 5) + ((($auslastung < 0.25) ? 0 : $auslastung) * 5) + ((($auslastung < 0.5) ? 0 : $auslastung) * 5) + ((($auslastung < 0.8) ? 0 : $auslastung) * 5); $retVal = floor($retVal) + 1; echo $retVal;
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/3QqJW
function name:  (null)
number of ops:  31
compiled vars:  !0 = $auslastung, !1 = $retVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.2
    4     1        MUL                                              ~3      !0, 5
          2        IS_SMALLER                                               !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                                               !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                                               !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
    4    23        ASSIGN                                                   !1, ~15
    7    24        INIT_FCALL                                               'floor'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $17     
         27        ADD                                              ~18     $17, 1
         28        ASSIGN                                                   !1, ~18
    8    29        ECHO                                                     !1
    9    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.15 ms | 1396 KiB | 15 Q