3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo round(9.05, 1, PHP_ROUND_HALF_ODD); // 9
Output for 5.3.0 - 7.1.0
9.1
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17
Notice: Use of undefined constant PHP_ROUND_HALF_ODD - assumed 'PHP_ROUND_HALF_ODD' in /in/9pnId on line 2 Warning: Wrong parameter count for round() in /in/9pnId on line 2
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/9pnId on line 2
Process exited with code 255.