3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 0.5; echo $a; echo sprintf('%.02f', $a); setlocale(LC_ALL, 'fr_FR.UTF-8'); echo $a; echo sprintf('%.02f', $a); echo (float) '0.5'; echo (float) '0,5';
Output for 4.3.0 - 7.1.0
0.50.500.50.500.50