3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('precision', 3); echo "Precision: " . ini_get('precision') . PHP_EOL; echo (1/3) . PHP_EOL; echo (1/3); echo PHP_EOL;
based on GjEEA
Output for 7.0.0 - 7.2.0
Precision: 3 0.33333333333333 0.333
Output for 5.3.19 - 5.6.28
Precision: 3 0.333 0.333