3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
261.46 ms | 1395 KiB | 14 Q