3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $total = '-'; $total = number_format($total, 2); echo "total ".$total;
based on cmsWD
Output for 7.0.0 - 7.3.0alpha1
Warning: number_format() expects parameter 1 to be float, string given in /in/UPYFS on line 3 total
Output for 5.3.22 - 5.6.28
Warning: number_format() expects parameter 1 to be double, string given in /in/UPYFS on line 3 total