3v4l.org

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