3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ex_round($_,$__ = 1){ if(0== round($_, $__, PHP_ROUND_HALF_EVEN)){ return ex_round($_,$__+1); } return round($_, $__, PHP_ROUND_HALF_EVEN); } echo ex_round(0.005); echo ex_round(1.005); echo PHP_EOL; echo round(0.005, 1, PHP_ROUND_HALF_ODD);
Output for git.master, git.master_jit, rfc.property-hooks
0.0051 0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.81 ms | 401 KiB | 8 Q