codepad.viper-7.com
Script:
(hide)
Author
unknown
Size:
368 b
Created:
25/11/2012 11:44am
Version:
4
Hits:
91
Render Time:
0.00 ms
PHP Version
trunk-dev
5.5-dev
5.4.9
5.4-dev
5.3.19
5.3.10
5.3-dev
5.2.17
Output:
HTML
(hide)
Code:
(hide)
<?php
function fibo($n){
if($n==0)
return 0;
elseif($n==1)
return 1;
else
$tambah=fibo($n-1)+fibo($n-2);
return $tambah;
}
function repeat($func, $times) {
if ($times <= 0) {
return;
}
$func($times);
repeat($func, $times - 1);
}
$f = function($n) {
echo fibo($n)."<br/>";
};
repeat($f, 15);
User
Create Account
Log In
Views
Request Headers
Response Headers
Response Body
Opcodes
Profile
Call Graph
Controls
New Paste
Paste History
unknown:
untitled
unknown:
untitled
unknown:
untitled
unknown:
untitled
unknown:
untitled
unknown:
untitled