3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $zeros = str_replace('0', 20); var_dump((float) '123.233242' . $zeros . '2'); var_dump(round('123.233242' . $zeros . '2'));
Output for 5.3.0 - 7.1.0
Warning: str_replace() expects at least 3 parameters, 2 given in /in/sm26b on line 2 string(11) "123.2332422" float(123)
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for str_replace() in /in/sm26b on line 2 string(11) "123.2332422" float(123)