3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(ceil(5.4) === floor(5.4)); var_dump(ceil( 5) === floor( 6)); var_dump(ceil( 5) === floor( 5)); var_dump(ceil(5.4) === floor(5.0)); var_dump(ceil(5.0) === floor(5.0)); var_dump(ceil(5.0) === floor( 5));
based on p2a06
Output for 5.3.22 - 7.4.0
bool(false) bool(false) bool(true) bool(false) bool(true) bool(true)