3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f($number) { $num=fib($number); echo '\n\r'; echo $number.' number fibinache is '.$num; } function fib($num,$count=1,$plast=1,$last=1){ if($count <= $num){ $newlast=$plast+$last; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(3); ?>
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0RC5
\n\r3 number fibinache is 5