3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 320.49; $payments = array_fill(0, 3, floor($amount * 100 / 4) / 100); $payments[3] = round($amount - $payments[0] * 3, 2); print_r($payments); $payments = array_fill(0, 3, ceil($amount * 100 / 4) / 100); $payments[3] = round($amount - $payments[0] * 3, 2); print_r($payments);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 80.12 [1] => 80.12 [2] => 80.12 [3] => 80.13 ) Array ( [0] => 80.13 [1] => 80.13 [2] => 80.13 [3] => 80.1 )

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:
29.27 ms | 405 KiB | 5 Q