3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1399 KiB | 13 Q