3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pay = [20, 40 , 89, 300, 190, 15]; $Capital = 1000; foreach ($pay as $amount) { $newCap = $Capital - $amount; echo $Capital . ' - ' . $amount . ' = ' . $newCap . '<br>'; $Capital = $newCap; }
Output for git.master, git.master_jit, rfc.property-hooks
1000 - 20 = 980<br>980 - 40 = 940<br>940 - 89 = 851<br>851 - 300 = 551<br>551 - 190 = 361<br>361 - 15 = 346<br>

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