3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prices = array(149, 199); function price($price) { $price = $price - ($price / 100 * 25); return "Org: " . $price . "\tRounded: " . (round($price / 5) * 5) . "\n"; } foreach ($prices as $price) { echo price($price); }
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Org: 111.75 Rounded: 110 Org: 149.25 Rounded: 150