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; echo (float) $b; echo (float) $c; echo (float) $d; echo (float) $e; echo (float) $f; ?>
Output for 4.3.0 - 7.1.0
0.450.451.455656.556.5