3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.99 ms | 1385 KiB | 13 Q