3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pi = pi(); printf("pi: %.30f\n", $pi); echo M_PI;
based on 7iNgA
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
pi: 3.141592653589793115997963468544 3.1415926535898
Output for hhvm-3.12.0
pi: 3.141592653589800221425321069546 3.1415926535898
Output for hhvm-3.10.0

Process exited with code 153.