3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $price_check = '20.00'; if($price_check > '0'||$filter='0'){ if($price_check < '500') if($price_check < '200') if($price_check < '100') if($price_check < '50') if($price_check < '20') $filter='0-20'; else $filter='20-50'; else $filter='50-100'; else $filter='100-200'; else $filter='200-500'; else $filter='501'; }echo $filter;
based on 3HpHf
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
Jump found. Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
Jump found. Position 1 = 8, Position 2 = 26
Branch analysis from position: 8
Jump found. Position 1 = 10, Position 2 = 24
Branch analysis from position: 10
Jump found. Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
Jump found. Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
Jump found. Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
Jump found. Position 1 = 19
Branch analysis from position: 19
Jump found. Position 1 = 21
Branch analysis from position: 21
Jump found. Position 1 = 23
Branch analysis from position: 23
Jump found. Position 1 = 25
Branch analysis from position: 25
Jump found. Position 1 = 27
Branch analysis from position: 27
Jump found. Position 1 = -2
Branch analysis from position: 18
Jump found. Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 20
Jump found. Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 22
Jump found. Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 24
Jump found. Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 26
Jump found. Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 5
filename:       /in/jIZdj
function name:  (null)
number of ops:  29
compiled vars:  !0 = $price_check, !1 = $filter
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, '20.00'
   4     1        IS_SMALLER                                       ~3      '0', !0
         2      > JMPNZ_EX                                         ~3      ~3, ->5
         3    >   ASSIGN                                           $4      !1, '0'
         4        BOOL                                             ~3      $4
         5    > > JMPZ                                                     ~3, ->27
   5     6    >   IS_SMALLER                                       ~5      !0, '500'
         7      > JMPZ                                                     ~5, ->26
   6     8    >   IS_SMALLER                                       ~6      !0, '200'
         9      > JMPZ                                                     ~6, ->24
   7    10    >   IS_SMALLER                                       ~7      !0, '100'
        11      > JMPZ                                                     ~7, ->22
   8    12    >   IS_SMALLER                                       ~8      !0, '50'
        13      > JMPZ                                                     ~8, ->20
   9    14    >   IS_SMALLER                                       ~9      !0, '20'
        15      > JMPZ                                                     ~9, ->18
  10    16    >   ASSIGN                                                   !1, '0-20'
        17      > JMP                                                      ->19
  11    18    >   ASSIGN                                                   !1, '20-50'
        19    > > JMP                                                      ->21
  12    20    >   ASSIGN                                                   !1, '50-100'
        21    > > JMP                                                      ->23
  13    22    >   ASSIGN                                                   !1, '100-200'
        23    > > JMP                                                      ->25
  14    24    >   ASSIGN                                                   !1, '200-500'
        25    > > JMP                                                      ->27
  15    26    >   ASSIGN                                                   !1, '501'
  16    27    >   ECHO                                                     !1
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0