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 = "1"; $postfixStr = sprintf("%03d" , $postfixNum); var_dump($postfixStr); ?>
based on JRdn8
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
float(123.45) string(3) "001"