3v4l.org

run code in 500+ PHP versions simultaneously
<?php $customerCredit = 105.00; $customerCredit = round($customerCredit - 100.00, 2); $customerCredit = round($customerCredit - 4.95, 2); $customerCredit = round($customerCredit - 0.05, 2); if ($customerCredit > 0) { echo 'Go for it!'; } elseif ($customerCredit == 0.0) { echo 'Zero balance, sorry'; } else { echo 'Omg, your balance is negative'; }
Output for rfc.property-hooks, git.master_jit, git.master
Zero balance, sorry

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:
25.82 ms | 1251 KiB | 4 Q