3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $percentSales = round( (100 / 0) * 100 , 1); //TECHOPS-968 echo "\tPercent Sales: ".$percentSales."% ";
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/KT2GN on line 3 Percent Sales: INF%
Output for 4.3.0 - 5.6.28
Warning: Division by zero in /in/KT2GN on line 3 Percent Sales: 0%