3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $my_double = 4.7; $my_int = ceil($my_double); echo($my_int); $my_double = -4.7; $my_int = floor($my_double); echo($my_int); ?>
based on ASF9s
Output for 5.4.0 - 7.2.0
5-5
Output for 4.3.0 - 5.3.29
<? $my_double = 4.7; $my_int = ceil($my_double); echo($my_int); $my_double = -4.7; $my_int = floor($my_double); echo($my_int); ?>