3v4l.org

run code in 500+ PHP versions simultaneously
<?php $totalhousesleft = 1; $iteration = 0; for($x = 8000; $x > 0; $x = $x - 10){ if(empty($iteration)) { $iteration = $x/1000; } if ($totalhousesleft >= $x) { $currentprice = $iteration; $sellingprice = $currentprice + 1; break; } $iteration++; } if(empty($currentprice)){ $currentprice = $iteration; $sellingprice = $currentprice + 1; } var_dump($currentprice, $sellingprice);
Output for rfc.property-hooks, git.master, git.master_jit
int(808) int(809)

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:
36.99 ms | 1251 KiB | 4 Q