3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f($number) { $num=fib($number); echo ' | '.$number.' number fibinache is '.$num; } function fib($num,$count=0,$plast=0,$last=1){ if($count < $num){ $newlast=$plast+$last; echo ' | '.$count.': '.$newlast; $count++; return fib($num,$count,$last,$newlast); } else { return $last; } } f(90); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
| 0: 1 | 1: 2 | 2: 3 | 3: 5 | 4: 8 | 5: 13 | 6: 21 | 7: 34 | 8: 55 | 9: 89 | 10: 144 | 11: 233 | 12: 377 | 13: 610 | 14: 987 | 15: 1597 | 16: 2584 | 17: 4181 | 18: 6765 | 19: 10946 | 20: 17711 | 21: 28657 | 22: 46368 | 23: 75025 | 24: 121393 | 25: 196418 | 26: 317811 | 27: 514229 | 28: 832040 | 29: 1346269 | 30: 2178309 | 31: 3524578 | 32: 5702887 | 33: 9227465 | 34: 14930352 | 35: 24157817 | 36: 39088169 | 37: 63245986 | 38: 102334155 | 39: 165580141 | 40: 267914296 | 41: 433494437 | 42: 701408733 | 43: 1134903170 | 44: 1836311903 | 45: 2971215073 | 46: 4807526976 | 47: 7778742049 | 48: 12586269025 | 49: 20365011074 | 50: 32951280099 | 51: 53316291173 | 52: 86267571272 | 53: 139583862445 | 54: 225851433717 | 55: 365435296162 | 56: 591286729879 | 57: 956722026041 | 58: 1548008755920 | 59: 2504730781961 | 60: 4052739537881 | 61: 6557470319842 | 62: 10610209857723 | 63: 17167680177565 | 64: 27777890035288 | 65: 44945570212853 | 66: 72723460248141 | 67: 117669030460994 | 68: 190392490709135 | 69: 308061521170129 | 70: 498454011879264 | 71: 806515533049393 | 72: 1304969544928657 | 73: 2111485077978050 | 74: 3416454622906707 | 75: 5527939700884757 | 76: 8944394323791464 | 77: 14472334024676221 | 78: 23416728348467685 | 79: 37889062373143906 | 80: 61305790721611591 | 81: 99194853094755497 | 82: 160500643816367088 | 83: 259695496911122585 | 84: 420196140727489673 | 85: 679891637638612258 | 86: 1100087778366101931 | 87: 1779979416004714189 | 88: 2880067194370816120 | 89: 4660046610375530309 | 90 number fibinache is 4660046610375530309