3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.37 ms | 1390 KiB | 13 Q