3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function plusfive($n) { for($i=0;$i<5;$i++) { $n++; } return $n; } $num = 0.000000000000499999999; $numa = $num + 5; $numb = plusfive($num); echo $numa; echo "\n"; echo $numb;
based on MClmZ
Output for 5.3.19 - 7.2.0
5.0000000000005 5.0000000000005