3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($number) { $num=fib($number); echo $number.' number fibinache is '.$num; } function fib($num,$count=2,$plast=1,$last=1){ if($count <= $num){ ++$count; $newlast=$plast+$last; return fib($num,$count,$last,$newlast); } else { return $last; } } f(1); ?>
Output for 4.3.0 - 7.2.0
1 number fibinache is 1