3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo set_markup(1); function set_markup($total_price) { $total_price = (int)$total_price; switch($total_price) { case ($total_price >= 0 && $total_price <= 9999): $markup_percent = 25; break; case ($total_price >= 10000 && $total_price <= 25000): $markup_percent = 20; break; case ($total_price >= 25001 && $total_price <= 99999): $markup_percent = 15; break; case ($total_price >= 100000 && $total_price <= 999999): $markup_percent = 10; break; case ($total_price >= 1000000 && $total_price <= 20000000): $markup_percent = 5; break; default: $markup_percent = 0; break; } return $markup_percent; }
Output for git.master, git.master_jit, rfc.property-hooks
25

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