3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? ini_set('precision','100'); echo pi()."\n"; exit; ?>
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
3.141592653589793115997963468544185161590576171875
Output for hhvm-3.10.0 - 3.12.0
3.1415926535898
Output for 4.3.0 - 5.3.29
<? ini_set('precision','100'); echo pi()."\n"; exit; ?>