3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '20.001'; echo $filter = ( $price_check <= 0 ? '0' : ($price_check <= 20 ? '020' : ($price_check <= 50 ? '2050' : ($price_check <= 100 ? '50100' : ($price_check <= 200 ? '100200' : ($price_check <= 500 ? '200500' : '501' )))))); ?>
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/U22F6
function name:  (null)
number of ops:  34
compiled vars:  !0 = $price_check, !1 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20.001'
    6     1        IS_SMALLER_OR_EQUAL                                      !0, 0
          2      > JMPZ                                                     ~3, ->5
          3    >   QM_ASSIGN                                        ~4      '0'
          4      > JMP                                                      ->31
    7     5    >   IS_SMALLER_OR_EQUAL                                      !0, 20
          6      > JMPZ                                                     ~5, ->9
          7    >   QM_ASSIGN                                        ~6      '020'
          8      > JMP                                                      ->30
    8     9    >   IS_SMALLER_OR_EQUAL                                      !0, 50
         10      > JMPZ                                                     ~7, ->13
         11    >   QM_ASSIGN                                        ~8      '2050'
         12      > JMP                                                      ->29
    9    13    >   IS_SMALLER_OR_EQUAL                                      !0, 100
         14      > JMPZ                                                     ~9, ->17
         15    >   QM_ASSIGN                                        ~10     '50100'
         16      > JMP                                                      ->28
   10    17    >   IS_SMALLER_OR_EQUAL                                      !0, 200
         18      > JMPZ                                                     ~11, ->21
         19    >   QM_ASSIGN                                        ~12     '100200'
         20      > JMP                                                      ->27
   11    21    >   IS_SMALLER_OR_EQUAL                                      !0, 500
         22      > JMPZ                                                     ~13, ->25
         23    >   QM_ASSIGN                                        ~14     '200500'
         24      > JMP                                                      ->26
   12    25    >   QM_ASSIGN                                        ~14     '501'
         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
    5    31    >   ASSIGN                                           ~15     !1, ~4
         32        ECHO                                                     ~15
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1390 KiB | 13 Q