fork download
<?php

error_reporting(-1);

function creditAmmount($dolg, $percent, $commision, $month) {
	for ($i = 0; $i < $month; $i++) {
		 $dolg =  (($dolg * $percent) + $commision);
	}

	return $dolg;
	}
$balanse = creditAmmount(40000, 1.04, 500, 10);
echo ($balanse);

$payment = 5000;
 
for ($s=0; $s)
Runtime error #stdin #stdout #stderr 0.02s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected ')', expecting ';' in /home/gDMhiR/prog.php on line 17