3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 609; $tax= 0.20; $subtax= ($v1*$tax); for ($month = 6; $month < 12; $month++) { //$v1 = ($v1-$subtax); echo "v1: {$v1}\nsubtax: {$subtax}\n"; $v1 -= $subtax; echo "v1 - subtax: $v1\n\n"; } /* 487.20 389.76 311.81 249.45 199.56 */
Output for git.master, git.master_jit, rfc.property-hooks
v1: 609 subtax: 121.8 v1 - subtax: 487.2 v1: 487.2 subtax: 121.8 v1 - subtax: 365.4 v1: 365.4 subtax: 121.8 v1 - subtax: 243.6 v1: 243.6 subtax: 121.8 v1 - subtax: 121.8 v1: 121.8 subtax: 121.8 v1 - subtax: -5.6843418860808E-14 v1: -5.6843418860808E-14 subtax: 121.8 v1 - subtax: -121.8

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:
69.1 ms | 402 KiB | 8 Q