3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $price = 1080; $taxrate = 1.08; $rewrite = $price / $taxrate; $floatflag = ($price * 100) % ($taxrate * 100); print_r ($floatflag . "\n"); print_r ($rewrite . "\n"); if($floatflag != 0){ $rewrite = floor($rewrite); print_r ("is float \n"); } else{ print_r ("is not float \n"); } print_r ($rewrite);
based on NcOJ0
Output for 5.6.0 - 7.2.6
0 1000 is not float 1000