3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123.45; $b = 1; $ans = floatval($a) / floatval($b); var_dump($ans); $postfixNum = ""; $postfixStr = sprintf("%02d" , $postfixNum); var_dump($postfixStr); ?>
based on JRdn8
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
float(123.45) string(2) "00"