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=1,$plast=1,$last=1){ if($count <= $num){ $newlast=$plast+$last; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(2); ?>
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.13.2, hhvm-3.17.3, 7.0.0 - 7.2.0
2 number fibinache is 3
Output for hhvm-3.15.4

Process exited with code 137.