3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = (29 / 100.0) * 100.0; echo floor($input); // Outputs: 28, expected: 29 $input = (7 / 100.0) * 100.0; echo ceil($input); // Outputs: 8, expected: 7
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
288
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/nZ8vZ on line 6
Process exited with code 255.