3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123.456789; echo round($a, 2); echo sprintf('%01.2F', $a); echo bcmul($a, 100);
Output for 4.3.10 - 4.4.9, 5.0.3 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 7.0.4, 7.0.6 - 7.2.6, 7.3.0rc3 - 7.3.0rc4
123.46123.4612345
Output for 7.0.5, 7.3.0alpha1 - 7.3.0beta1
123.46123.46 Fatal error: Uncaught Error: Call to undefined function bcmul() in /in/jloBK:5 Stack trace: #0 {main} thrown in /in/jloBK on line 5
Process exited with code 255.
Output for 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
123.46123.46 Fatal error: Call to undefined function bcmul() in /in/jloBK on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
123.4612345
Output for 4.3.0 - 4.3.1
123.4612300