3v4l.org

run code in 300+ PHP versions simultaneously
<?php $long_total_profit_loss = -900; $short_sell_total_profit_loss = 29000; if($long_total_profit_loss > $short_sell_total_profit_loss) { if($long_total_profit_loss > 0) { echo "long has higher in profit"; } else { // $long_total_profit_loss<0 or =0 echo "short has higher loss"; } } else { // $long_total_profit_loss < $short_sell_total_profit_loss or equal if($short_sell_total_profit_loss > 0) { echo "short has higher in profit"; } else { // $long_total_profit_loss<0 or =0 echo "long has higher loss"; } }
Output for git.master, git.master_jit, rfc.property-hooks
short has higher in profit

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