3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.99 ms | 1394 KiB | 13 Q