3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo round((72*1.3888) * 100.00, HALF_ROUND_UP) / 100.00;
based on d2Kej
Output for 7.3.0 - 7.3.1
Warning: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' (this will throw an Error in a future version of PHP) in /in/H2u6q on line 3 Warning: round() expects parameter 2 to be int, string given in /in/H2u6q on line 3 0
Output for 7.2.0 - 7.2.13
Warning: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' (this will throw an Error in a future version of PHP) in /in/H2u6q on line 3 Warning: round() expects parameter 2 to be integer, string given in /in/H2u6q on line 3 0
Output for hhvm-3.15.4, 7.0.0 - 7.1.25
Notice: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' in /in/H2u6q on line 3 Warning: round() expects parameter 2 to be integer, string given in /in/H2u6q on line 3 0
Output for 5.6.0 - 5.6.30
Notice: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' in /in/H2u6q on line 3 Warning: round() expects parameter 2 to be long, string given in /in/H2u6q on line 3 0