3v4l.org

run code in 300+ PHP versions simultaneously
<?php function horrible_excel_op($f, $g) { $tiers = [ [19.5, 2500], [18.5, 1875], [17.5, 1675], [16.5, 1550], [15.5, 1250], [14.5, 1125], [13.5, 925], [12.5, 800], [11.5, 725], [10.5, 650], [9.5, 575], [8.5, 475], [7.5, 375], [6.5, 325], [5.5, 250], [4.5, 225], [3.5, 150], [2.5, 100], [1.5, 75], ]; $defaultMultiplier = 50; foreach ($tiers as [$threshold, $multiplier]) { if ($f > $threshold) { return $g * $multiplier; } } return $g * $defaultMultiplier; } var_dump(horrible_excel_op(2.6374, 18));
Output for git.master, git.master_jit, rfc.property-hooks
int(1800)

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:
18.26 ms | 401 KiB | 8 Q