3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 3.5; $y = 3; echo floor($x) + 1 - floor(1 - ($x - floor($x))); echo PHP_EOL; echo floor($y) + 1 - floor(1 - ($y - floor($y)));
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0rc3
4 3