3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $investCom = "2798789.68768"; $mortAmount = "1554646.55"; $comm = (float) $investCom; $mort = (float) $mortAmount; $balance = $comm - $mort; var_dump($balance);
based on hVLRP
Output for 4.3.0 - 7.1.0
float(1244143.13768)