3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.24 ms | 1399 KiB | 13 Q