3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.14 ms | 1399 KiB | 13 Q