3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '105'; $filter='501'; if($price_check > '500' || $filter='200-500'){} elseif($price_check > '200' || $filter='100-200'){} elseif($price_check > '100' || $filter='50-100'){} elseif($price_check > '50' || $filter='20-50'){} elseif($price_check > '20' || $filter='0-20'){} elseif($price_check <= '0'){$filter=0;} echo $filter;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 14
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 20
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 26
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
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 = 32
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 35
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
Branch analysis from position: 30
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/cFcMM
function name:  (null)
number of ops:  37
compiled vars:  !0 = $price_check, !1 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '105'
    3     1        ASSIGN                                                   !1, '501'
    5     2        IS_SMALLER                                       ~4      '500', !0
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    >   ASSIGN                                           ~5      !1, '200-500'
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->8
          7    > > JMP                                                      ->35
    6     8    >   IS_SMALLER                                       ~6      '200', !0
          9      > JMPNZ_EX                                         ~6      ~6, ->12
         10    >   ASSIGN                                           ~7      !1, '100-200'
         11        BOOL                                             ~6      ~7
         12    > > JMPZ                                                     ~6, ->14
         13    > > JMP                                                      ->35
    7    14    >   IS_SMALLER                                       ~8      '100', !0
         15      > JMPNZ_EX                                         ~8      ~8, ->18
         16    >   ASSIGN                                           ~9      !1, '50-100'
         17        BOOL                                             ~8      ~9
         18    > > JMPZ                                                     ~8, ->20
         19    > > JMP                                                      ->35
    8    20    >   IS_SMALLER                                       ~10     '50', !0
         21      > JMPNZ_EX                                         ~10     ~10, ->24
         22    >   ASSIGN                                           ~11     !1, '20-50'
         23        BOOL                                             ~10     ~11
         24    > > JMPZ                                                     ~10, ->26
         25    > > JMP                                                      ->35
    9    26    >   IS_SMALLER                                       ~12     '20', !0
         27      > JMPNZ_EX                                         ~12     ~12, ->30
         28    >   ASSIGN                                           ~13     !1, '0-20'
         29        BOOL                                             ~12     ~13
         30    > > JMPZ                                                     ~12, ->32
         31    > > JMP                                                      ->35
   10    32    >   IS_SMALLER_OR_EQUAL                                      !0, '0'
         33      > JMPZ                                                     ~14, ->35
         34    >   ASSIGN                                                   !1, 0
   12    35    >   ECHO                                                     !1
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.75 ms | 1399 KiB | 13 Q