3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.42 ms | 1390 KiB | 13 Q