3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $invoiceTotalVAT = (float)'3.454875616545152415121523'; $num = number_format((floor($invoiceTotalVAT*100)/100), 2, '.', ''); echo $num;
Output for 4.3.0 - 7.1.0
3.45