3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ilk = 5; $iki = 3; $ust = fact($ilk); echo $ust; $alt = fact($iki) * fact($ilk - $iki); echo $ust / $alt; function fact(int $sayi){ for(; $sayi>0; $sayi--){ if(!isset($sonuc)){ $sonuc = $sayi; }else{ $sonuc *= $sayi; } } return $sonuc; }
Output for 7.3.0alpha1
12010