3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userPercentage = 0.1 * 0.1; // 10% $total = 100; $userShare = $userPercentage * $total; // 0.05 * 100 = 10 echo "$userShare\n"; $new_total = $userShare * 10; // 10 being the amount of users. This totals $100. echo "$new_total\n"; $userPercentage = 0.1 * 0.3; // 30% $total = 100; $userShare = $userPercentage * $total; // 0.3 * 100 = 30 echo "$userShare\n"; $new_total = $userShare * 10; // 10 being the amount of users. This totals $300. echo "$new_total\n"; $userPercentage = 0.1 * 0.6; // 60% $total = 100; $userShare = $userPercentage * $total; // 0.6 * 100 = 60 echo "$userShare\n"; $new_total = $userShare * 10; // 10 being the amount of users. This totals $600. echo "$new_total\n";
Output for git.master, git.master_jit, rfc.property-hooks
1 10 3 30 6 60

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