3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $item['qty'] = 1; $priseone = "1 560 руб."; echo $priseone . "<br>"; $prise = preg_replace("/[^0-9]/","",$priseone); echo $prise . "<br>"; $prise = $prise / $item['qty']; echo $prise . "<br>"; $prise = $prise + 0.05 * $prise; echo $prise . "<br>"; $prise = round($prise, -1); echo $prise . "<br>"; $prise = $prise * $item['qty']; echo $prise . "<br>";
Output for 4.3.0 - 7.2.0
1 560 руб.<br>1560<br>1560<br>1638<br>1640<br>1640<br>