3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.02 ms | 1390 KiB | 13 Q