3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sum = ( (1/2)^2 + (1/3)^2 + (1/4)^2 + (1/5)^2 + (1/6)^2 + (1/7)^2 + (1/8)^2 + (1/9)^2 + (1/10)^2 ); echo 'The sum is '.$sum;
based on qd4Mj
Output for 4.3.0 - 7.1.0
The sum is 2