3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //method 1. $tc = -0.07722108145106092170; $F0 = 2.35555574349387919497; $F1 = 8328.69142571908560057636; $F2 = 0.00015455472302827120; $F3 = 0.00000025033354424091; $F4 = -0.00000000118633907768; $arg = ((($F4 * $tc + $F3) * $tc + $F2) * $tc + $F1) * $tc + $F0; printf("1. ARG: %20.15f\n", $arg); //method 2. $arg0 = $F0; $arg1 = $F1 * $tc; $arg2 = $F2 * $tc * $tc; $arg3 = $F3 * $tc * $tc * $tc; $arg4 = $F4 * $tc * $tc * $tc * $tc; printf("2. ARG: %20.15f\n", $arg0+$arg1+$arg2+$arg3+$arg4);
Output for 4.3.7 - 7.1.0
1. ARG: -640.795002301203226 2. ARG: -640.795002301203112
Output for 4.3.0 - 4.3.6
1. ARG: -640.795002301203226 2. ARG: -640.795002301203112