3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = 0; // Starting amount $i = 0.06; // Interest rate $c = 12; // compound frequency set to monthly $n = 6/12; // Current time invested set to 6 months $r = 200; // Monthly investment is 200 $x = $i / $c; $y = pow((1 + $x), ($n * $c)); if($p!=0) { $vf = $p * $y + ($r * ($y - 1) / $x); } else { $vf = 1 + $y + ($r * ($y - 1) / $x); } echo $vf;
Output for git.master, git.master_jit, rfc.property-hooks
1217.13075326

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