3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo round((72*1.3888) * 100.00, 2, HALF_ROUND_UP) / 100.00;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Undefined constant "HALF_ROUND_UP" in /in/9kWSM:3 Stack trace: #0 {main} thrown in /in/9kWSM on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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/9kWSM on line 3 Warning: round() expects parameter 3 to be int, string given in /in/9kWSM on line 3 0
Output for 7.2.0 - 7.2.33
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/9kWSM on line 3 Warning: round() expects parameter 3 to be integer, string given in /in/9kWSM on line 3 0
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' in /in/9kWSM on line 3 Warning: round() expects parameter 3 to be integer, string given in /in/9kWSM on line 3 0
Output for 5.6.0 - 5.6.40
Notice: Use of undefined constant HALF_ROUND_UP - assumed 'HALF_ROUND_UP' in /in/9kWSM on line 3 Warning: round() expects parameter 3 to be long, string given in /in/9kWSM on line 3 0

preferences:
221.01 ms | 401 KiB | 292 Q