3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $price = '200.01'; $filter='501'; if($price>'500'||$filter='200-500') if($price>'200'||$filter='100-200') if($price>'100'||$filter='50-100') if($price>'50'||$filter='20-50') if($price>'20'||$filter='0-20') if($price<='0')$filter=0; echo $filter;
based on DPfkU
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
200-500