3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mypi = 3.1415926535897932384626433832795028841971; $pi = pi(); printf("pi: %.24f, %.24f, %.24f\n", $pi, $mypi, M_PI);
based on i0kA4
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
pi: 3.141592653589793115997963, 3.141592653589793115997963, 3.141592653589793115997963
Output for hhvm-3.10.0 - 3.12.0
pi: 3.141592653589800221425321, 3.141592653589793115997963, 3.141592653589800221425321