3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // format: 08:25:50 Feb 20, 2014 PST $a = '0.450'; $b = '.450'; $c = '1.45'; $d = '56'; $e = '56.5'; $f = '56.50'; echo (float) $a.'<br>'; echo (float) $b.'<br>'; echo (float) $c.'<br>'; echo (float) $d.'<br>'; echo (float) $e.'<br>'; echo (float) $f; ?>
Output for 4.3.0 - 7.1.0
0.45<br>0.45<br>1.45<br>56<br>56.5<br>56.5