3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo(floor(1.35,2) . "<br>"); echo(floor(0.40) . "<br>"); echo(floor(5) . "<br>"); echo(floor(5.1) . "<br>"); echo(floor(-5.1) . "<br>"); echo(floor(-5.9)); ?>
Output for 5.3.0 - 7.2.0
Warning: floor() expects exactly 1 parameter, 2 given in /in/pQsvu on line 2 <br>0<br>5<br>5<br>-6<br>-6
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for floor() in /in/pQsvu on line 2 <br>0<br>5<br>5<br>-6<br>-6